Linux Qt5.6 触摸屏不工作
平台:Linux + Qt5.6(evdevtouch,linuxfb) + TiAM437x
触摸屏: GT5688_000119
问题:Qt写的App控件不能识别触摸,比如触摸按键不能实现点击
在Linux下用evtest测试触摸屏,感觉坐标什么的都是对的:
root@am437x-evm:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: adp5585-keys
/dev/input/event1: goodix-ts
Select the device event number [0-1]: 1
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0xdead product 0xbeef version 0x28bb
Input device name: "goodix-ts"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 213
Min 0
Max 720
Event code 1 (ABS_Y)
Value 246
Min 0
Max 1280
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 255
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 255
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 720
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 1280
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 255
Event code 58 (ABS_MT_PRESSURE)
Value 0
Min 0
Max 255
Properties:
Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
Event: time 1480918441.845968, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1480918441.845968, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 7
Event: time 1480918441.845968, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 7
Event: time 1480918441.845968, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1480918441.845968, type 3 (EV_ABS), code 0 (ABS_X), value 25
Event: time 1480918441.845968, type 3 (EV_ABS), code 1 (ABS_Y), value 22
Event: time 1480918441.845968, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 25
Event: time 1480918441.845968, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 22
Event: time 1480918441.845968, ++++++++++++++ SYN_MT_REPORT ++++++++++++
但是在Qt应用程序里面控件无法捕获到touch事件,坐等高手解惑,多谢各位了!
我的App运行命令: ./test -platform linuxfb -plugin evdevtouch