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. Navigate through QML ListView

Navigate through QML ListView

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 1 Posters 1.6k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    When I reach the end of a QML ListView and navigate then to the first Element, the complete List will be pass through.
    Is it possible, to avoid this?

    Thank You.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      favoritas37
      wrote on last edited by
      #2

      if you want, you can add a button somewhere that will return the user automatically to the beginning of the list:
      @
      onClicked: listView.currentIndex = 0
      @

      Just make sure that in the ListView definition you have set the highlightFollowsCurrentItem to true.

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        Hi. Thank you for help, but that does not solve my problem.

        But that week I solved it with using positionViewAtIndex.

        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