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

MultiPointTouchArea generates two "Released" events when used with a mouse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.3.1, 5.4.0, 5.4.1, 5.5.1
    • None
    • Windows 7
      Reproduced on Linux (using 5.4 head branch)

      MultiPointTouchArea generates two "Released" events when used with a mouse. When used with a touch screen, only one released event is generated. The code below generates the following output when used with a mouse:

      qmlscene.exe main.qml
      qml: QML Pressed QQuickTouchPoint(0x4ef3300)
      qml: QML Released QQuickTouchPoint(0x4ef3300)
      qml: QML Released QQuickTouchPoint(0x4ef3300),QQuickTouchPoint(0x4ef3300)

      When used with a touch screen:

      qmlscene.exe main.qml
      qml: QML Pressed QQuickTouchPoint(0x6433630)
      qml: QML Released QQuickTouchPoint(0x6433630)

      import QtQuick 2.2
      import QtQuick.Controls 1.1
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          MultiPointTouchArea {
              anchors.fill: parent
              onPressed: {
                  console.log("QML Pressed " + touchPoints)
              }
      
              onReleased: {
                  console.log("QML Released " + touchPoints)
              }
          }
      }
      

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

            srutledg Shawn Rutledge
            jhe Jesper Hellesø Hansen
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes