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

Regression: touch events on Qt 5.3.0 generate unexpected left button events

XMLWordPrintable

    • Propagate source/flags to QGV-Mouse events: bae7435f61e68711b6b8ce056957a146dc1a335e (dev, 26.6.2014, 5.4)

      There is some unexpected behaviour in qt 5.3.0 touch event handlers.

      Suppose that someone needs to code custom logic when handling touch events. In my case I need to generate right button clicks targeted to QGraphicsScene (on TouchBegin event I send mousePress with QApplication::sendEvent, TouchUpdate - mouseMove, on TouchEnd - mouseRelease).

      It was working perfectly in qt 5.1 and 5.2, but when I ported my app to qt 5.3 some uexpected behaviour was noticed. The reason is in unexpected left button events that come right away after touch events. They seem to be generated by inner Qt touch handlers.

      Minimal example reproducing this problem: https://github.com/dvvrd/qt-5.3.0-unexpected-touch-events

        1. qtbug39814.zip
          5 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-39814
        # Subject Branch Project Status CR V

            srutledg Shawn Rutledge
            dvvrd Dmitry Mordvinov
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes