[Qt-qml] ListView sections are not updated on item changes
Michael Nosov
michael.nosov at gmail.com
Mon Jan 31 15:31:38 CET 2011
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/20110131/25256bf3/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sections_bug.zip
Type: application/zip
Size: 8791 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110131/25256bf3/attachment.zip
More information about the Qt-qml
mailing list