[Qt-qml] ListView sections are not updated on item changes
martin.jones at nokia.com
martin.jones at nokia.com
Tue Feb 1 07:45:33 CET 2011
You can log bugs at http://bugreports.qt.nokia.com. Select the "Declatative (QML)" component when entering the bug.
Br,
Martin.
From: qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com [mailto:qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com] On Behalf Of ext Michael Nosov
Sent: Tuesday, 1 February 2011 12:32 AM
To: qt-qml at qt.nokia.com
Subject: [Qt-qml] ListView sections are not updated on item changes
Hello,
I'm using QML ListView with sections to display content of my own QSortFilterProxyModel. Seems that sections are not updated when some item in a list has changed.
I'm attaching test application (based on Qt's abstractItemModel example) to demonstrate the issue. This application shows list of animals sorted by name.
- Run ./abstractitemmodel
- Click on 'Set best' for some 'CAnimal' item in the middle of the list
Expected result: 'CAnimal' shall be placed on top of list, Section name on top shall be 'Best'
Actual result: 'CAnimal' is placed on top of list BUT section names are not updated
I've found a workaround how to refresh the list - if you set impossible search criteria, and then unset search criteria - the list will be refreshed with correct data. But this workaround is not applicable for some reasons.
Does anyone know if I can somehow submit a bug on Qt-Qml against that?
Thanks a lot,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110201/cad9c454/attachment-0001.html
More information about the Qt-qml
mailing list