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. Jump to an item in PathView

Jump to an item in PathView

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 2.7k 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.
  • B Offline
    B Offline
    bundickt
    wrote on last edited by
    #1

    I need to be able to jump directly to an item by its index in a PathView (I don't want the item to scroll into view). I do this in a ListView or a GridView by using the positionViewAtIndex(...) function, but the PathView does not have such a function. Is it possible to do this with a PathView?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Hi,

      You can probably hack it with something like this:
      @var prevDuration = pathView.highlightMoveDuration
      pathView.highlightMoveDuration = 1
      pathView.currentIndex = 10 //or wherever you want to jump
      pathView.highlightMoveDuration = prevDuration
      @

      I'd highly recommend adding a suggestion for PathView::positionViewAtIndex() at http://bugreports.qt.nokia.com.

      Regards,
      Michael

      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