Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Why Qt does not get touch event after re-plug the touch device?
Forum Update on Monday, May 27th 2025

Why Qt does not get touch event after re-plug the touch device?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 624 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oscar0126
    wrote on last edited by
    #1

    Hello everyone

    Have a good day.
    I have a problem about touch device's hot-plug.
    I set the environment variable as below.
    export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/ts_uinput:rotate=0

    The "/dev/input/ts_uinput" is created by ts library's application "ts_uinput".
    The touch function can work normally before I re-plug the USB touch device.
    If I re-plug the USB touch device, the touch function doesn't work.
    The "/dev/input/ts_uinput" still is created after I re-plug the USB touch device.
    I also monitor the data in "/dev/input/ts_uinput" and it also has data report.
    Why the Qt does not get the touch event after re-plug the USB touch device?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you sure about that creation ?

      From an educated guess: when you unplug the touch device, the device file is not closed since it's opened by your application thus re-pluging it doesn't affect that device.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved