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: [email protected] 
[mailto:[email protected]] On Behalf Of ext Bo 
Elmgreen
Sent: Wednesday, May 25, 2011 8:49 PM
To: [email protected]
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

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to