baoboa / pyqt5

PyQt5 from riverbank
http://www.riverbankcomputing.com/software/pyqt/download5
GNU General Public License v3.0
1.04k stars 591 forks source link

How to use tslib(touch screen library) in pyqt5? #68

Open sanluku opened 2 years ago

sanluku commented 2 years ago

I want to run my pyqt5 application under Ubuntu14 system. but the touch points is incorrect, i try to calibrate the screen. I run ts_calibrate to finish touch screen calibrate, it can generate calibrate file normally. When i run my application, the touch points is still incorrect. It's seem tslib not working with Pyqt5. My export like this: export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_CALIBFILE=/etc/pointercal export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/plugins export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0 export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0 export QWS_MOUSE_PROTO=tslib export QT_QPA_EGLFS_TSLIB=1 export QT_QPA_FB_TSLIB=1

Did i do anything wrong?

sanluku commented 2 years ago

export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0 This is an exception. And i found no libqtslibplugin.so in /PyQt5/Qt/plugins/generic Does PyQt5 not suppot tslib?