Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.2, 6.2.3, 6.2.4, 6.3.0
-
-
718bef9d2c (qt/qtdeclarative/dev) f11824fcb0 (qt/qtdeclarative/6.3) e97bd5dcc6 (qt/qtdeclarative/6.4) f11824fcb0 (qt/tqtc-qtdeclarative/6.3) e97bd5dcc6 (qt/tqtc-qtdeclarative/6.4) 718bef9d2c (qt/tqtc-qtdeclarative/dev) f11824fcb0 (qt/qtdeclarative/6.3.2)
Description
Windows supports using a pen as a mouse input device. Normally, in response to a stroke of the pen on the screen, you would get mouse button down, mouse moved, and mouse button up events. In QtQuick with a MouseArea, if I tap with the pen without any motion on the screen it gives the onPressed and onReleased signals. However, if I move the pen on the screen, it only gives onPressed and PositionChanged. It doesn't emit the onReleased signal. A subsequent tap or drag does not give any onPressed signal, only positionChanged.
Some Android devices have a stylus input device (eg, Galaxy Note, S22 Ultra). I was surprised to find a similar bug in Android as in Windows. In this case there is no onReleased signal no matter whether the pen is moved or not.main.qml
I have attached a simple MouseArea example that I used for testing. I get similar results using a DragHandler. I have not been able to test an iPad with Apple Pencil.
Attachments
For Gerrit Dashboard: QTBUG-102764 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
420351,7 | Don't ungrab for a TabletRelease event: wait for the synth-mouse release | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
421659,2 | Add qt.pointer.dispatch debug message for tablet->mouse synth | dev | qt/qtbase | Status: MERGED | +2 | 0 |
422180,2 | Don't ungrab for a TabletRelease event: wait for the synth-mouse release | 6.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
422181,2 | Don't ungrab for a TabletRelease event: wait for the synth-mouse release | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
422182,1 | Don't ungrab for a TabletRelease event: wait for the synth-mouse release | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |
422884,2 | Add qt.pointer.dispatch debug message for tablet->mouse synth | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |