[Qt-qml] Problems with ListView section headings after adding new element to list

Bo Elmgreen bo.elmgreen at gmail.com
Fri May 27 10:43:11 CEST 2011


Hi,

I will try to find some time to try with a newer snapshot, but I am a bit
short of time :o(
It would be nice if there was an automated build system that, for instance,
once a week could make the dlls for the different platforms, so you wouldn't
have to check out the build and compile them yourself. Just a suggestion ;-)

Cheers,
Bo

On Fri, May 27, 2011 at 3:57 AM, <martin.jones at nokia.com> wrote:

> 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/4be3662a/attachment.html 


More information about the Qt-qml mailing list