Details
-
Bug
-
Resolution: Unresolved
-
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)
Description
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) } } }
Attachments
Issue Links
- duplicates
-
QTBUG-44370 MultiPointTouchArea emits onReleased two times when using a mouse
- Closed