Possible bug in Qt code. Testing

Benjamin Meyer ben at meyerhome.net
Sun Dec 10 02:26:12 GMT 2006


On Saturday 09 December 2006 4:30 pm, Rafael Fernández López wrote:
> Hi guys,
>
> After some talking with hermier, aseigo, dfaure and fredrikh in kde4-devel
> it seems that there is a bug at Qt's code (on the model part). I wrote a
> test to show that QPersistentIndexes are not correctly updated.
>
> The test is simple enough to get the point about what's happening.
>
> output.txt is the output of the running test.
>
> As you can see the main problem is when removing, row() property is not
> updated into the QPersistentIndexes correctly, so when asking for the row 0
> on the index method after removing, the QPersistentIndex hasn't been
> updated and still has row at 1, it won't find it, and it will return a
> QModelIndex(), and for that reason the last line is on row -1.
>
> I would like to have some replies at this, to know what you think. It would
> be nice if it is a bug having it fixed on Qt, since I was becoming pretty
> mad on uiserver, i was sure i was doing it correctly.
>
> Bye and thanks,
> Rafael Fernández López.

If it looks like a bug in Qt then just send it in to Trolltech.

-Benjamin Meyer

-- 
aka icefox
Public Key: http://www.icefox.net/public_key.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061210/95830246/attachment.sig>


More information about the kde-core-devel mailing list