Details
-
Type:
Bug
-
Status: Reported
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: 5.15.5
-
Fix Version/s: None
-
Component/s: GUI: Basic Input System (keyboard, mouse, touch)
-
Labels:None
-
Environment:Yocto Linux with tslib
-
Platform/s:
Description
We usually enables tslib with QT_QPA_EGLFS_TSLIB or QT_QPA_FB_TSLIB environment variable on embedded linux.
https://doc.qt.io/qt-5/inputs-linux-device.html#touch
Then a mousehandler for tslib is created.
When QT_QPA_GENERIC_PLUGINS=tslib is also set, Qt will creates another mousehandler for tslib.
https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/generic/tslib/main.cpp?h=5.15.2#n59
Because of the duplication, QWidget rarely receives additional mouse press/release events against single touch operation.
To avoid the issue, do not set QT_QPA_GENERIC_PLUGINS=tslib when you want to use tslib.