| 193 | Qt's input systems: |
| 194 | |
| 195 | Qt can use Linux evdev directly for input or it can use helper libraries such as libinput or tslib: |
| 196 | * By default Qt5 on Ubuntu is using libinput and there is no tslib support |
| 197 | * To troublshoot input you can set 'QT_LOGGING_RULES=qt.qpa.input=true'. |
| 198 | * If you wish to disable libinput you can set 'QT_QPA_EGLFS_NO_LIBINPUT=1' for eglfs backend or 'QT_QPA_FB_NO_LIBINPUT=1' for linuxfb backend and input will default to evdev. |
| 199 | |
| 200 | evdev: |
| 201 | |
| 202 | When using evdev you can parameters via QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS with colon separated parameters, for example: |
| 203 | - Run fingerpaint using evdev and linuxfb backend and specify /dev/input/event1 for input, rotate input 90 degrees, and invert both x and y: |
| 204 | {{{#!bash |
| 205 | QT_LOGGING_RULES=qt.qpa.input=true QT_QPA_FB_NO_LIBINPUT=1 QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1:rotate=90:invertx:inverty ./fingerpaint -platform linuxfb |
| 206 | }}} |
| 207 | |