Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1, 6.4.3
-
-
f0b2c5f21 (dev), 44df580c8 (6.6), 87b0297ca (tqtc/lts-6.5), 65258e941 (tqtc/lts-6.2)
Description
Apparently, tslib support is broken in Qt6. A debug log shows the device being used, but no events seem to be generated. The UI does not react to any touchscreen presses:
root# QT_LOGGING_RULES="qt.qpa.input=true" QT_QPA_FB_NO_LIBINPUT=1 coreui QML debugging is enabled. Only use this in a safe environment. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/volatile/tmp/runtime-root' qt.qpa.input: Initializing tslib plugin "TsLib" "" qt.qpa.input: tslib device is /dev/input/touchscreen0 qt.qpa.input: evdevkeyboard: Using device discovery qt.qpa.input: udev device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Keyboard) qt.qpa.input: Found matching devices QList("/dev/input/event0") qt.qpa.input: Adding keyboard at /dev/input/event0 qt.qpa.input: Try to create keyboard handler for "/dev/input/event0" "" qt.qpa.input: Opening keyboard at /dev/input/event0 qt.qpa.input: Create keyboard handler with for device "/dev/input/event0" qt.qpa.input: Unload current keymap and restore built-in qt.qpa.input: numlock=0 , capslock=0, scrolllock=0 qt.qpa.input: evdevmouse: Using device discovery qt.qpa.input: udev device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Mouse|Device_Touchpad) qt.qpa.input: Found matching devices QList() This plugin does not support createPlatformOpenGLContext! failed to acquire GL context to resolve capabilities, using defaults..
Our application supports both Qt5 and Qt6. tslib works fine in the Qt5 build.
Note that we rely on tslib mainly for its touchscreen calibration feature. libinput or Qt's own evdev handling do not have a suitable substitute.