Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
-
None
Description
Problem
On X11 systems using the xcb platform plugin, unplugging and re-plugging a USB touchscreen while a Qt 6.8.x application is running causes all QTouchEvents to stop.
X-Server assigns a new device-id, but Qt does not refresh its internal QInputDevice list, so the running app loses touch capability until it is restarted.
Expected outcome
The application should continue to receive touch events transparently after any hot-plug/hot-unplug cycle—no restart, no external scripts.
Steps to Reproduce
- Launch any Qt Quick app (Qt 6.8.3) on X11 with a USB multitouch monitor attached.
- Confirm the app responds to touch.
- Disconnect the touchscreen’s USB cable.
- Reconnect the same touchscreen.
- Touch still works system-wide, but the running Qt app no longer receives events.