Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.8, 6.5.0
-
None
-
Windows 10 22H2, MSVC 2019 or MinGW 11.2.0
-
-
8d11e05f8 (dev), 62f83ac45 (6.5), ea4501366 (tqtc/lts-6.2)
Description
Add this line the main() function of any project:
qDebug() << "Devices:" << QInputDevice::devices();
This seems to produce correct information on macOS 13.3.1 and Ubuntu 22.04, but returns an empty list on Windows 10 22H2 (physical machine).
Notes
I do have the following devices plugged in, which are all recognized by Windows Device Manager:
- A very basic wired USB keyboard
- A Logitech wireless dongle, that is paired to one keyboard and one mouse
Unplugging either one of the USB connectors and rerunning the app makes no difference.
Attachments
Issue Links
- is required for
-
QTBUG-101648 On Windows Touch device(Surface Pro) need to know if external keyboard is connected or not
- Reported
- relates to
-
QTBUG-101875 Properly register the input devices on Android
- Reported
-
QTBUG-112432 wayland plugin should distinguish touchpads from mice, etc.
- Reported
-
QTBUG-113706 WASM: QInputDevice::devices() erroneously reports that a touchscreen exists
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-113711 | ||||||
---|---|---|---|---|---|---|
# | 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 |