[Qt-qml] ListView sections are not updated on item changes

Stephen Kelly steveire at gmail.com
Mon Jan 31 19:18:21 CET 2011


Michael Nosov wrote:

> 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?

Create an account and fill one:

http://bugreports.qt.nokia.com/secure/CreateIssue.jspa?pid=10510&issuetype=1&Create=Create

Make sure you attach your test case.

> 
> Thanks a lot,
> Michael




More information about the Qt-qml mailing list