[Interest] Quick2 - animate sorting of listview, sorted with QSortFilerProxyModel
Ola Røer Thorsen
ola at silentwings.no
Fri Aug 16 10:01:33 CEST 2013
Hi again, thanks for all the replies!
Nils, thanks for pointing out the beginMoveRows functions and the sample
code. So the limitation isn't ListView at all, it's just the
I can confirm that using this method the animations do work, as I've now
implemented my own sorting and filtering.
It would be great if QSortFilterProxyModel could handle this as well some
time in the future, that class is really convenient to use.
2013/8/15 André Somers <andre at familiesomers.nl>
> Op 14-8-2013 16:50, Nils Jeisecke schreef:
> > Hi,
> > On Wed, Aug 14, 2013 at 4:41 PM, André Somers <andre at familiesomers.nl>
> >> I think the root of the problem is that QAbstractItemModel does not have
> >> a concept of moving items, while the native QML model does.
> > There's beginMoveRows and endMoveRows since 4.6. This also enables
> > move animations in the Qml item views.
> > Nils
> Oops! You're completely right. Sorry about that!
> You like Qt?
> I am looking for collegues to join me at i-Optics!
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest