Important: Please read the Qt Code of Conduct -

Animate smoothly to an specific index

  • Hi!

    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())?

  • 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":

Log in to reply