Qt 5.10.1 EGLFS libinput Touchscreen rotation

  • Hi,

    I try to do my first development on Rapsberri PI 3 and Qt.
    I use Qt 5.10.1 with cross compilation for Raspberry 3
    I have a 7" LCD with USB touchscreen rotate a 90°.

    I found the solution to rotate the screen with config.txt adding :

    and the touchscreen is rotated with adding call a batch script in
    the script is :
    xinput set-prop 'FocalTech Lab FTxxxx MultiTouch' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1

    So the touchscreen is working in startx

    My problem is with programs in Qt using EGLFS and libinput. I can not rotate my touchscreen.
    I read a lot a post talking about wayland, tslib, ts_calibrate, evdev.... But I think it is for old development.
    I am pretty sure there is a simple solution for nowadays.


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