Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.0
-
None
-
-
8d11e05f8 (dev), 62f83ac45 (6.5), ea4501366 (tqtc/lts-6.2)
Description
In https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platforms/android/androidjniinput.cpp#n299 getTouchDevice() calls registerInputDevice(), and getTouchDevice() is called only from touchEnd() and touchCancel(). But all platforms should register their input devices as soon as they are discovered (preferably at startup), and every input event should have its QInputEvent::device() being the actual device that the event comes from. This is what we depend on to recognize that a synthesized mouse event actually comes from a touchscreen, or a stylus, for example: it's a QMouseEvent but device() says it's really from a different device, not a mouse.
Attachments
Issue Links
- relates to
-
QTBUG-113711 Windows: QInputDevice::devices() returns empty list
- Reported
-
QTBUG-115207 Properly register the input devices on Wayland
- Reported
Gerrit Reviews
For Gerrit Dashboard: QTBUG-101875 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
479017,2 | doc: Reduce expectations for QInputDevice::devices() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
479269,2 | doc: Reduce expectations for QInputDevice::devices() | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
479271,2 | doc: Reduce expectations for QInputDevice::devices() | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |