Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sanluku opened this issue Aug 6, 2021 · 1 comment
Open

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

sanluku opened this issue Aug 6, 2021 · 1 comment

Comments

@sanluku
Copy link

sanluku commented Aug 6, 2021

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
Copy link
Author

sanluku commented Aug 11, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant