Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.2, 6.3.0 Beta1, 6.3.1, 6.4.0
-
None
-
Windows 11. Tested with Wacom graphics tablet and Samsung Galaxy Book
-
-
31e7790102 (qt/qtbase/dev) 31e7790102 (qt/tqtc-qtbase/dev) f35ad8f32f (qt/tqtc-qtbase/6.2) 97c95f606f (qt/qtbase/6.4) 97c95f606f (qt/tqtc-qtbase/6.4) 97c95f606f (qt/tqtc-qtbase/6.4.1) 97c95f606f (qt/tqtc-qtbase/tqtc/qtinsight-6.4)
Description
In the following code, we have a simple TapHandler that logs a message using the onTapped signal handler.
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") TapHandler{ id: tapHanlder acceptedDevices: PointerDevice.Stylus | PointerDevice.Pen onTapped: { console.debug("Clicked!", Date.now()) // this gets printed twice } } }
When running this code and testing with a stylus (I've tested this with a graphic tablet and a Samsung S Pen on Windows 11), the TapHandler emits the signal twice so the console message gets printed twice. If on the other hand, the TapHandler is used with a mouse the code behaves as expected. This seems to be another bug affecting the Qt Quick tablet input system on Windows (I couldn't reproduce this bug on Linux), which is basically unusable and too buggy to be used in production (see QTBUG-98242 and QTBUG-98037).
Attachments
Issue Links
- relates to
-
QTBUG-47007 mousePressEvent of QWidget gets called even though QTabletEvent was accepted [Qt 5.4.2]
- Closed
-
QTBUG-76617 Wacom tablet input not working in Qt Quick
- Closed
-
QTBUG-51618 Android: the stylus sends QTabletEvent but not QMouseEvent
- Closed
-
QTBUG-60437 add full-featured Windows Ink support: generate QTabletEvents
- Closed
- resulted from
-
QTBUG-100534 TapHandler doesn't stop propagation
- Reported