Phil Thompson wrote:
On Wed, 03 Jun 2009 22:57:32 +0200, Vicente Sole wrote:
createIndex can accept a pointer or a quint32 so, in any case one
would say it is a positive number. Perhaps forcing the return of
internalId() to be a quint64 instead of qint64 in
qabstractitemmodel.sip could
On Thu, 04 Jun 2009 08:35:52 +0200, V. Armando Solé s...@esrf.fr
wrote:
Phil Thompson wrote:
On Wed, 03 Jun 2009 22:57:32 +0200, Vicente Sole wrote:
createIndex can accept a pointer or a quint32 so, in any case one
would say it is a positive number. Perhaps forcing the return of
Hello,
I think I have fallen into a Qt bug but perhaps I am wrong.
According to the (latest) Qt documentation,
QAbstractItemModel.createIndex takes a uint32 as the model index
internalId, while the internalId() method of QModelIndex returns a
uint64. I guess my problems are coming from that
Hi Armando,
On Wed, Jun 3, 2009 at 9:34 AM, V. Armando Solé s...@esrf.fr wrote:
Hello,
I think I have fallen into a Qt bug but perhaps I am wrong.
According to the (latest) Qt documentation, QAbstractItemModel.createIndex
takes a uint32 as the model index internalId, while the internalId()
On Wed, Jun 3, 2009 at 10:23 AM, V. Armando Solé s...@esrf.fr wrote:
Darren Dale wrote:
Hi Armando,
Relatedly, I think there is a small problem with the PyQt4 documentation
for the overloaded QAbstractItemModel.createIndex method. It looks like Qt's
documentation for passing a pointer is
On Wed, Jun 3, 2009 at 10:37 AM, Darren Dale dsdal...@gmail.com wrote:
On Wed, Jun 3, 2009 at 10:23 AM, V. Armando Solé s...@esrf.fr wrote:
Darren Dale wrote:
Hi Armando,
Relatedly, I think there is a small problem with the PyQt4 documentation
for the overloaded
Dear Darren,
There is something weird going on under linux 32 bit.
The code below works fine on windows.
On linux 64 bit, it is fine either after masking the values, either
supplying a 32-bit masked identifier. That illustrates the fact the
intended behavior of internalId() is to return the
Hello,
The problem can be solved as shown below.
It seems the linux 32 bit implementation gets confused in
createIndex(row, column, a) when a is not an integer but a long. With
small values of a (10, 100, 1000), the indexId() method returns the
supplied value.
The solution is to call
On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson
p...@riverbankcomputing.comwrote:
On Wed, 03 Jun 2009 17:37:29 +0200, V. Armando Solé s...@esrf.fr
wrote:
Hello,
The problem can be solved as shown below.
It seems the linux 32 bit implementation gets confused in
createIndex(row,
On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale dsdal...@gmail.com wrote:
On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson
p...@riverbankcomputing.com wrote:
On Wed, 03 Jun 2009 17:37:29 +0200, V. Armando Solé s...@esrf.fr
wrote:
Hello,
The problem can be solved as shown below.
It seems
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale dsdal...@gmail.com wrote:
On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale dsdal...@gmail.com wrote:
On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson
p...@riverbankcomputing.com wrote:
On Wed, 03 Jun 2009 17:37:29 +0200, V. Armando Solé s...@esrf.fr
Quoting Darren Dale:
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale dsdal...@gmail.com wrote:
One last point, however: I think Armando's suggestion of passing the object,
and not the object's id(), coupled with Phil's patch, is the right solution:
At my side, passing the object was already
On Wed, 03 Jun 2009 22:57:32 +0200, Vicente Sole s...@esrf.fr wrote:
Quoting Darren Dale:
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale dsdal...@gmail.com wrote:
One last point, however: I think Armando's suggestion of passing the
object,
and not the object's id(), coupled with Phil's patch,
On Wed, Jun 3, 2009 at 4:57 PM, Vicente Sole s...@esrf.fr wrote:
Quoting Darren Dale:
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale dsdal...@gmail.com wrote:
One last point, however: I think Armando's suggestion of passing the
object,
and not the object's id(), coupled with Phil's patch, is
14 matches
Mail list logo