Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136547

Maintain Touch Input After USB Hot-Plug on X11/XInput2 (xcb platform plugin)

    XMLWordPrintable

Details

    • Linux/X11

    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

      1. Launch any Qt Quick app (Qt 6.8.3) on X11 with a USB multitouch monitor attached.
      2. Confirm the app responds to touch.
      3. Disconnect the touchscreen’s USB cable.
      4. Reconnect the same touchscreen.
      5. Touch still works system-wide, but the running Qt app no longer receives events.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes