In Qt 5.15.1, the environment variable QT_QPA_FB_TSLIB=1 is not working consistently.
-
I run the program with the -plugin tslib, and both the program and the touchscreen work. The full launch command is
/home/pi/Qt_Projects/kiab/kiab -plugin tslib.If I write in ~/.profile
export QT_QPA_FB_TSLIB=1and launch
/home/pi/Qt_Projects/kiab/kiab,the program works but the touchscreen does not.
-
I run the program with the -plugin tslib, and both the program and the touchscreen work. The full launch command is
/home/pi/Qt_Projects/kiab/kiab -plugin tslib.If I write in ~/.profile
export QT_QPA_FB_TSLIB=1and launch
/home/pi/Qt_Projects/kiab/kiab,the program works but the touchscreen does not.
Hello, @Alexey_Golubev ADP Vantage Hcm
To fix the touchscreen issue, add these lines to
~/.profile:export QT_QPA_PLATFORM=linuxfb export QT_QPA_FB_TSLIB=1 export QT_QPA_GENERIC_PLUGINS=tslibThen, reload the profile and launch your program:
source ~/.profile /home/pi/Qt_Projects/kiab/kiabI hope this information will be helpful for you
Best Regards
Chris Wright