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



  • 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.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

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

    Hope it helps



  • @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.