In Qt 5.15.1, the environment variable QT_QPA_FB_TSLIB=1 is not working consistently.
Unsolved
General and Desktop
-
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=1
and 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=1
and 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=tslib
Then, reload the profile and launch your program:
source ~/.profile /home/pi/Qt_Projects/kiab/kiab
I hope this information will be helpful for you
Best Regards
Chris Wright