Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Animate smoothly to an specific index
Forum Updated to NodeBB v4.3 + New Features

Animate smoothly to an specific index

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 880 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lillbiff
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kysymys
      wrote on last edited by
      #2

      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.

      \o/ \o/ Kudos ...

      Paholaisen Kysymys

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved