Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60192

QScroller is too fast on widgets with scrollMode QAbstractItemView::ScrollPerItem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      Scrolling speed is much too fast when applying a QScroller to a widget that scrolls per item (e.g. default for QListView).

      Apparently the scroller sends values in units of pixels, but the widget interprets these as values in unit of items (scroll 10 px vs scroll 10 items).

      It would be nice, if the scroller would check the scroll mode and adapt to the widget. If this is too complicated for the time being, at least the behavior should be documented in QScroller::grabGesture, together with the hint only to use it on widgets with a scrollMode set to QAbstractItemView::ScrollPerPixel.

        Attachments

        1. qtbug60192.zip
          2 kB
        2. qtbug60192_per_pixel_log.txt
          26 kB
        3. qtbug60192_per_item_log.txt
          16 kB
        4. qtbug60129_diag.diff
          2 kB

          Issue Links

          For Gerrit Dashboard: QTBUG-60192
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              thoffmann Tim Hoffmann
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change