touch screen issue with QT
-
Hi
I could able to calibrate touch screen using ts_calibrate and ts_test works fine as expected.
But when the QT application is executed, touch screen works in reverse direction like when top icon is clicked bottom icon gets executed.
Please suggest how to resolve the QT issue.
-
I have a vague recollection that I dealt with something similar approximately 3 years ago, but I no longer recall the details.
Meanwhile, it does look like something from this post might help you:
https://stackoverflow.com/questions/52826172/qt-5-11-touch-input-inverted-in-my-applicationApparently that user's final working solution was to use
evdev
.Oddly, I feel that what worked for me (in my barely-recollected case) was something that other user mentions in their question as part of "what didn't work." Which is to place your own config in
/usr/share/X11/xorg.conf.d/
and useTransformationMatrix
.... something roughly like:# WARNING. ROUGH EXAMPLE. CONSULT X11/XORG docs!!! Section "InputClass" Identifier "libinput touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1" EndSection