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

Windows8, x86 tablet (Acer w501) and touch screen

    XMLWordPrintable

Details

    • Windows giving hint about OS synthesizing touch: 9b7c66ac7f0ed3c240ccbabe2b460d7ad4171749, Enable Qt synthesizing correctly: e9760f1559361c39f269fb89f1ebd01f6ee8378d , Widgets: 8c81b282f8e18897257b93cb3fc149d74441c40e

    Description

      I made button in QML with MouseArea, mouse clicks are working well, but when i press button with touch screen MouseArea send onClicked event twice. So there are two same MouseEvents, sometimes with little different x/y. Can't find anything about this problem, and can't resolve it by myself (i am, probably, newbie).

      upd: with touchscreen click
      first onClicked with mouse.buttons==1 (this is Qt.LeftButton)
      second onClicked with mouse.buttons==0

      with mouse click
      only one onClicked with mouse.buttons==0

      so, workaround is
      onClicked: {
      if(!mouse.buttons) {
      //do something

      upd2: QtWidgets have same problem. But standart win8 and any other apps haven't this trouble. So, it's probably Qt bug.

      upd3: QtGui widgets in Qt 4.8.4 works well, only one pressed/realesed/clicked event.

      upd4: It's windows 8 feature, Qt5 needs special mechanics to prevent events doubling.

      Attachments

        1. widgetsTouchTest.zip
          2 kB
        2. touchdiag5_quick_qtbug29946.patch
          4 kB
        3. touchdiag5_qtbug29946.patch
          17 kB
        4. test.qml
          0.2 kB
        5. qtbug29946.tar
          10 kB
        6. qtbug29946.qml
          0.3 kB
        7. Qt5_stack.png
          Qt5_stack.png
          85 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              qthree Yuri
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes