How to stop QML ListView from bouncing ?
-
wrote on 18 Oct 2012, 13:40 last edited by
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
-
Use the inherited "boundsBehaviour":http://qt-project.org/doc/qt-4.8/qml-flickable.html#boundsBehavior-prop property (stopAtBounds).
-
wrote on 19 Oct 2012, 13:06 last edited by
Thanks that was very helpful.
-
Pleasure. Happy coding :)
-
wrote on 21 Sept 2022, 17:35 last edited by Archie888
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.
-
wrote on 21 Sept 2022, 19:21 last edited by
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.