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

Windows: Touch and mouse events from touchscreen are coming to QML elements in random order, making Controls menus inaccessible

    XMLWordPrintable

Details

    Description

      Windows 8 with touchscreen is making touch and mouse press/release events for each touch event which seem to be emitted in random order, but most of the time after touch events.

      This causes menus and comboboxes made with Qt Quick Controls to open and close very quickly in Qt 5.3.1, which makes picking menu items impossible most of the time.

      QtWidgets are working fine.

      Example of events from not working touch:

      {{ApplicationWindow_QMLTYPE_44(0x4397092310) QTouchEvent(TouchBegin states: QFlags(0x1), 1 points: QPointF(68, 27)   QRectF(68,27 0x0)  pressed ) 
      QQuickMouseArea(0x4396888f20) QTouchEvent(TouchBegin states: QFlags(0x1), 1 points: QPointF(68, 7)   QRectF(68,7 0x0)  pressed ) 
      QQuickMouseArea(0x4396888f20) QMouseEvent(MouseButtonPress, 1, 1, 0, source = 2)
      ApplicationWindow_QMLTYPE_44(0x4397092310) QTouchEvent(TouchEnd states: QFlags(0x8), 1 points: QPointF(68, 27)   QRectF(68,27 0x0)  released ) 
      QQuickMouseArea(0x4396888f20) QTouchEvent(TouchEnd states: QFlags(0x8), 1 points: QPointF(68, 7)   QRectF(68,7 0x0)  released ) 
      QQuickMenuPopupWindow(0x43965daa90) QMouseEvent(MouseButtonPress, 1, 1, 0, source = 1)
      QQuickMenuPopupWindow(0x43965daa90) QMouseEvent(MouseButtonRelease, 1, 0, 0, source = 1)
      }}
      

      Example of events from working touch:

      {{ApplicationWindow_QMLTYPE_44(0x4397092310) QTouchEvent(TouchBegin states: QFlags(0x1), 1 points: QPointF(71, 31)   QRectF(71,31 0x0)  pressed ) 
      QQuickMouseArea(0x4396888f20) QTouchEvent(TouchBegin states: QFlags(0x1), 1 points: QPointF(71, 11)   QRectF(71,11 0x0)  pressed ) 
      QQuickMouseArea(0x4396888f20) QMouseEvent(MouseButtonPress, 1, 1, 0, source = 2)
      ApplicationWindow_QMLTYPE_44(0x4397092310) QMouseEvent(MouseButtonPress, 1, 1, 0, source = 1)
      ApplicationWindow_QMLTYPE_44(0x4397092310) QTouchEvent(TouchEnd states: QFlags(0x8), 1 points: QPointF(71, 31)   QRectF(71,31 0x0)  released ) 
      QQuickMouseArea(0x4396888f20) QTouchEvent(TouchEnd states: QFlags(0x8), 1 points: QPointF(71, 11)   QRectF(71,11 0x0)  released ) 
      QQuickMenuPopupWindow(0x4399bf2f10) QMouseEvent(MouseButtonRelease, 1, 0, 0, source = 1)
      ApplicationWindow_QMLTYPE_44(0x4397092310) QMouseEvent(MouseButtonRelease, 1, 0, 0)
      }}
      

      Attachments

        1. qtbug40278.zip
          2 kB
        2. QTBUG-40278.zip
          2 kB

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: