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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.3.0
    • Fix Version/s: 5.4.0
    • Labels:
      None
    • Environment:
      Qt 5.3.0, Windows 8.1, Dell s2240t multitouch monitor.
    • Commits:
      Propagate source/flags to QGV-Mouse events: bae7435f61e68711b6b8ce056957a146dc1a335e (dev, 26.6.2014, 5.4)

      Description

      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

        Attachments

        1. qtbug39814.zip
          5 kB
          Friedemann Kleint

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes