qt and tslib configuration
-
wrote on 7 Jan 2018, 17:04 last edited by
Hi,
I have problem with my application in qt5. I am using an RaspberryPi 2 with touchscreen 4dpi-32. The touch screen was correctly installed. I can properly run ts_calibrate. If I run my app in linuxfb, the app don’t response on click on button.
Input for touchscreen is event2
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = myapp
TEMPLATE = appDEFINES += QT_DEPRECATED_WARNINGS
SOURCES +=
main.cpp
mainwindow.cppHEADERS +=
mainwindow.hFORMS +=
mainwindow.uiMy script:
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb1
export QT_QPA_FB_TSLIB=1
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb1
export TSLIB_TSDEVICE=/dev/input/event2
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.confcd /home/pi/myapp
./myappTha app run with mouse and keyboard properly
-
wrote on 10 Jan 2018, 12:39 last edited by
have you add "LIBS += -lts" in your pro file?
1/2