Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Animate smoothly to an specific index
lillbiff last edited by
I'm working to get a PathView (same problem goes for ListView) how do you scroll smoothly to an defined index? You can use PathViewId.incrementCurrentIndex() or PathViewId.decrementCurrentIndex(). If you use PathViewId.positionViewAtIndex(int index, PositionMode mode) it just jumps there without animation.
So are there a solution to scroll smoothly to an index you specify (just like the animation of PathViewId.decrementCurrentIndex() and PathViewId.incrementCurrentIndex())?
Kysymys last edited by
I do not know about PathView but ListView has transition properties that hold the animations that are used in response to changes to the model. For example "ListView.move":http://qt-project.org/doc/qt-5.1/qtquick/qml-qtquick2-listview.html#move-prop.