[Qt-qml] smooth scrolling using positionViewatIndex
Bartosh Wroblevksy
bartosh at live.com
Wed Oct 5 11:30:55 CEST 2011
>Unlike in a GridView, the sizes of items and section headers may change at any time.
Not sure I understand because I am looking to animate the positionViewatIndex on precisely a GridView. You have this on the home screen of Android and Iphone when you flick from one page to the next. There must be a way to do this in QML.
> Also, positionViewAtIndex() was designed to not animate the content y since without it, there was no way to jump to a content Y without drawing all the items in between, which is obviously expensive for very >long lists.
Outside of looking for a particular index, I have had trouble in the past to simply modify the ContentY property of a ListView. The ListView would simply do nothing when the that property would change.
>Although, for shorter lists, it would be nice to have perhaps another method, e.g. moveToIndex() or such, that could guess the new position and animate to that position.
This would be very very very nice. Please hack and whip something up, our entire application depends on this feature ;)
Thanks,
Bartosh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20111005/e4ce750e/attachment.html
More information about the Qt-qml
mailing list