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. Step size feels too big when using ListView
Qt 6.11 is out! See what's new in the release blog

Step size feels too big when using ListView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 368 Views 2 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.
  • C Offline
    C Offline
    Creaperdown
    wrote on last edited by
    #1

    I am not able to replicate a proper scroll behavior for a ListView as its e.g. known in browsers when using a Mousepad. When scrolling a tiny bit on the mousepad, there is a pretty big jump. It feels like the stepsize is way too big as shown in this video: https://streamable.com/diwzyo when just minimally moving on the mousepad.

    Is there an option to reduce that step size?

    MarkkyboyM 1 Reply Last reply
    0
    • C Creaperdown

      I am not able to replicate a proper scroll behavior for a ListView as its e.g. known in browsers when using a Mousepad. When scrolling a tiny bit on the mousepad, there is a pretty big jump. It feels like the stepsize is way too big as shown in this video: https://streamable.com/diwzyo when just minimally moving on the mousepad.

      Is there an option to reduce that step size?

      MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2

      @Creaperdown

      Read the docs https://doc.qt.io/qt-6/qml-qtquick-listview.html

      ListView inherits Flickable.

      try flickDeceleration: 100000

      https://doc.qt.io/qt-6/qml-qtquick-flickable.html#flickDeceleration-prop

      Don't just sit there standing around, pick up a shovel and sweep up!

      I live by the sea, not in it.

      C 1 Reply Last reply
      0
      • MarkkyboyM Markkyboy

        @Creaperdown

        Read the docs https://doc.qt.io/qt-6/qml-qtquick-listview.html

        ListView inherits Flickable.

        try flickDeceleration: 100000

        https://doc.qt.io/qt-6/qml-qtquick-flickable.html#flickDeceleration-prop

        C Offline
        C Offline
        Creaperdown
        wrote on last edited by
        #3

        @Markkyboy I have tried finding a good balance between maximumFlickVelocity and the flickDeceleration, but It doesnt seem like archiving the scroll behavior of the browser on both the mousepad and scroll is possible by just modifying these two variables

        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