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

QMouseEvents can occur before QTabletEvents on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.5.1
    • 4.5.2
    • Core: Event loop
    • None
    • 6a57a260fc1ce8250fef4ed6e0242ac933c7ee56

    Description

      Steps to reproduce / test case:

      According to the documentation for QTabletEvent:

      Qt will first send a tabletEvent then, if it is not accepted, it will send a mouse event.

      However, mouse events can occur before the corresponding tablet event.

      With the attached program, running "./tabletEvents ignoreTabletEvents", and touching down the stylus can produce the following output. Note that the mouse press event occurs before the tablet press event.

      (preceding events omitted)
      xevent serial=237 type=6 MotionNotify x=143,y=352
      xevent serial=237 type=105
      time=1592 tablet move event x=143,y=352 pressure=0 ignored
      xevent serial=238 type=6 MotionNotify x=145,y=354
      xevent serial=238 type=105
      time=1601 tablet move event x=145,y=354 pressure=0.389432 ignored
      xevent serial=238 type=4
      time=1601 mouse press event x=145,y=354 accepted
      xevent serial=238 type=103
      time=1601 tablet press event x=145,y=354 pressure=0.389432 ignored
      (following events omitted)

      Also, if the first occurrence of a tablet move event with non-zero pressure is accepted, the immediately following mouse press event will not occur.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes