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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.8.0
    • None

      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.

        1. qtbug60192_per_item_log.txt
          16 kB
          Friedemann Kleint
        2. qtbug60192_per_pixel_log.txt
          26 kB
          Friedemann Kleint
        3. qtbug60129_diag.diff
          2 kB
          Friedemann Kleint
        4. qtbug60192.zip
          2 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-60192
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There is 1 open Gerrit change