[Qt-qml] Problems with ListView section headings after adding new element to list
martin.jones at nokia.com
martin.jones at nokia.com
Fri May 27 03:57:39 CEST 2011
Hi,
It looks like the same bug to me. Are you able to test with a newer Qt snapshot? If you think it is something different then please create a new report with an example we can use to reproduce it.
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 Bo Elmgreen
Sent: Wednesday, May 25, 2011 8:49 PM
To: qt-qml at qt.nokia.com
Subject: [Qt-qml] Problems with ListView section headings after adding new element to list
Resending mail as I suspect the first one wasn't sent out to the mailing list...
----------------------------
Hi all,
I am using a QML ListView to show some users (individuals) and some groups, and I use the ListView section properties for grouping the list content.
The underlying model is a subclassed QAbstractListModel, and I sort the elements using a QSortFilterProxyModel on top of my model class, which I expose to QML via a context property. The sorting is implemented in the lessThan method of the sub-classed QSortFilterProxyModel class, and first I sort on the section property (individual/group) and then on the name.
This works fine initially, but if I at run-time add a new user, the list is sorted correctly, but the section headings are corrupted, see the attached screen dumps.
I stumbled across a bug (http://bugreports.qt.nokia.com/browse/QTBUG-17606), which looks related, but I don't know if it really has the same root cause or whether the fix also solves my problem. Please advise if I am missing something, or if there is a work-around to this problem.
Thanks,
Bo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110527/8fd20296/attachment.html
More information about the Qt-qml
mailing list