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

QWidget-gestures do not work

XMLWordPrintable

    • Pass touch events 18a444c33074dd89f8855ad12dca1c55f566ff86 (stable, 1.4.2014, 5.3), 646cef5a8 (dev), 5a52faa8f (6.10), fb2db2c34 (6.9), 8db7017cb (tqtc/lts-6.8), 50e39db8c (tqtc/lts-6.5)

      Run the Gesture examples from,

      qt5/qtbase/examples/widgets/gestures/imagegestures

      Try pinch, swipe and pan. They dont work.
      Modify example to add tap and tapandhold gestures,

      grabGesture(Qt::TapGesture);
      grabGesture(Qt::TapAndHoldGesture);
      

      Tap and TapAndHold gestures works.

      Modify example to add, nativewindows attribute,

      app.setAttribute(Qt::AA_NativeWindows);
      

      Now 2 finger pan and 2 finger rotate works, and weirdly these gestures are treated as Pinch gestures.

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

            kleint Friedemann Kleint
            tapadar Indrajit Tapadar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: