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

QScroller does not work with a laptop touchpad

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • None
    • 5.13.1
    • None
    • Linux on X11 and Wayland
    • Linux/Wayland

    Description

      In the Qt documentation here https://doc.qt.io/qt-5/qscroller.html it says that, when enabling QScroller::TouchGesture on a widget:

      The gesture recognizer will only trigger on touch events. Specifically it will react on single touch points when using a touch screen and dual touch points when using a touchpad.

      The bold part doesn't work.

       

      scroller->grabGesture(scrollArea->viewport(),QScroller::LeftMouseButtonGesture);

      Works as intended, but

      scroller->grabGesture(scrollArea->viewport(), QScroller::TouchGesture);

      Doesn't change anything at all

      I modified the official image viewer example to use QScroller and test both conditions, one can clearly see that one version works and the other doesn't

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kezi Kezi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes