Priority: P1: Critical
Affects Version/s: 5.12.1, 5.12.2, 5.12.3, 5.12.4
Component/s: Quick: Mouse Touch and Tablet input
Environment:wacom bamboo; wacom Cintiq 22HD
After upgrading from 5.11.1 to 5.12.X QML windows no longer reacted to Wacom tablet input (move, press, release) when in 'Pen mode'. The QML content is placed inside QQuickViews.
After digging up a bit, I discovered two things:
1. QQuickWindow's handleMouseEvent() disgards any events, marked as Qt::MouseEventSynthesizedBySystem.
2. As of 5.12.X, the 'qtbase/src/plugins/platforms/windows/qwindowscontext.cpp' seems to have been extended to specifically handle tablet (pointer) input:
That effectively marks all mouse events, synthesized from tablet input, as Qt::MouseEventSynthesizedBySystem. And though it does make sense, it renders all QtQuick.Controls, MouseAreas, etc unoperable.
In fact, at some point Qt Widgets stopped working for me too. It must have been in 5.12.1 or 5.12.2. No such issue in 5.12.4.
If it's meant to work that way and there's a misunderstanding from my side, please tell me what am I missing. I did search the web before posting this out. Although the fact that my project worked in 5.11.1 makes me think it's a bug.
To reproduce the bug, simply load any QML file with MouseArea in. It will react to mouse input, but not to the tablet.
|For Gerrit Dashboard: QTBUG-76617|
|267594,7||Windows QPA: Fix handling of mouse messages synthesized by the OS||5.12||qt/qtbase||Status: MERGED||+2||0|
|329814,4||Add device-agnostic virtual QQuickItem::pointerEvent()||dev||qt/qtdeclarative||Status: DEFERRED||0||0|