Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to stop QML ListView from bouncing ?
QtWS25 Last Chance

How to stop QML ListView from bouncing ?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 7.4k Views
  • 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.
  • Q Offline
    Q Offline
    Qnoobish
    wrote on last edited by
    #1

    Hello,

    Is there a way to stop a ListView from bouncing when I scroll up or down and reach the limits of the list ?

    If I scroll faster with my mouse the list takes some speed and at some point my list bounces back to its place.

    Hopefully there is some way to prevent this behaviour, I would like to normally scroll my ListView element without the bouncing.

    Thanks

    In short, software is eating the world.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Use the inherited "boundsBehaviour":http://qt-project.org/doc/qt-4.8/qml-flickable.html#boundsBehavior-prop property (stopAtBounds).

      (Z(:^

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        Qnoobish
        wrote on last edited by
        #3

        Thanks that was very helpful.

        In short, software is eating the world.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Pleasure. Happy coding :)

          (Z(:^

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Archie888
            wrote on last edited by Archie888
            #5

            Hello,

            I am controlling the ListView with the keyboard touchpad on the laptop. There is a noticeable bounce back from reaching the end of the x or y direction. I'd rather have it just stop dead on its tracks.

            Tried both:

            boundsBehavior: Flickable.StopAtBounds
            boundsMovement: Flickable.StopAtBounds
            

            Neither helps.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Archie888
              wrote on last edited by
              #6

              Perhaps it was, because I had a ListView inside a ScrollView... Now I implemented what I needed with a Flickable with a Repeater inside, and now boundsBehavior.StopAtBounds works, no bouncing.

              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