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. evdevtouch: How to restrict Qt5 only accept ts_uinput's input event?
Forum Update on Monday, May 27th 2025

evdevtouch: How to restrict Qt5 only accept ts_uinput's input event?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 3.5k 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 7 Jul 2017, 09:41 last edited by
    #1

    Hi everyone

    I'm testing ts_uinput (tslib's program) in linux.
    The ts_uinput create a simulated input event in path "/dev/input". (For example: /dev/input/ts_uinput).
    Moreover, the real touch device also has a input event in path "/dev/input". (For example: /dev/input/event0).
    The Qt's evdevtouch handler accept the two input event in the same time, but this cause a strange behavior.
    For example, I draw a vertical line by touch but the line isn't very straight.
    The reason is evdevtouch handler receive the two input event in the same time, so this cause the line isn't very straight.
    Is it possible to let evdevtouch handler only accept simulated input event (/dev/input/ts_uinput)?
    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Jul 2017, 22:12 last edited by
      #2

      Hi and welcome to devnet,

      Did you saw the recommendation here to select the input device to use ?

      Hope it helps

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

      O 1 Reply Last reply 24 Jul 2017, 11:21
      1
      • S SGaist
        8 Jul 2017, 22:12

        Hi and welcome to devnet,

        Did you saw the recommendation here to select the input device to use ?

        Hope it helps

        O Offline
        O Offline
        Oscar0126
        wrote on 24 Jul 2017, 11:21 last edited by
        #3

        @SGaist
        Thank you very much.
        I have seen the page before, but I don't know what it describe.
        Finally I use the following setting to specify the device input.
        QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/eventX
        QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/eventX:rotate=0
        Now, the ts_uinput work normally in my system.

        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