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. [sovled]how can I make a quick return in listview?
Forum Updated to NodeBB v4.3 + New Features

[sovled]how can I make a quick return in listview?

Scheduled Pinned Locked Moved QML and Qt Quick
qmllistviewquick return
5 Posts 3 Posters 1.3k Views 3 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
    beidaochuan
    wrote on last edited by beidaochuan
    #1

    hi,
    I make a function setCurrentIndex(ndex) to jump currentItem I want, but the default speed is too slow. How can I set the moving speed quickly?

    p3c0P 1 Reply Last reply
    0
    • B beidaochuan

      hi,
      I make a function setCurrentIndex(ndex) to jump currentItem I want, but the default speed is too slow. How can I set the moving speed quickly?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @beidaochuan Use positionViewAtIndex instead.

      157

      B 1 Reply Last reply
      1
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #3

        Hi,

        how did you implemented that method?
        I think you can try changing the verticalVelocity property

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        B 1 Reply Last reply
        0
        • p3c0P p3c0

          @beidaochuan Use positionViewAtIndex instead.

          B Offline
          B Offline
          beidaochuan
          wrote on last edited by
          #4

          @p3c0
          positionViewAtIndex is amazing, Thanks for your help.

          1 Reply Last reply
          0
          • M mcosta

            Hi,

            how did you implemented that method?
            I think you can try changing the verticalVelocity property

            B Offline
            B Offline
            beidaochuan
            wrote on last edited by
            #5

            @mcosta
            Thanks for your reply.
            positionViewAtIndex works well.

            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