Solved Convert QTApplication from mouse input to touch input
-
Hi, I've build an QtApplication that works perfect with a mouse on Linux however, i want to use it for Raspberry pi with a touch screen.
When i run it on the Raspberry pi, the mouse cursor is still present and touch input doesn't work (however, the courser moves in the app background because when i close the app, i can see the mouse being moved from the location that i left it when starting the app and also the terminal text being selected due to me touching and pressing the raspberry pi screen. )
I have tried :
QCoreApplication::setAttribute(Qt::AA_SynthesizeTouchForUnhandledMouseEvents, true);
QCoreApplication::setAttribute(Qt::AA_SynthesizeMouseForUnhandledTouchEvents, false);however, this doesn't work.
Any idea on how i can tell the app to use touch input and not the mouse (disabling the cursor would also be great. )
Thank you.
Regards -
I have found the answer here : https://forum.qt.io/topic/82892/how-to-install-tslib-plugin-for-qt-5-7/14
regards