当前位置: 代码迷 >> 综合 >> QT 支持鼠标和触摸屏输入
  详细解决方案

QT 支持鼠标和触摸屏输入

热度:18   发布时间:2024-01-16 04:34:11.0

1.使用鼠标输入

导入环境变量:export QWS_MOUSE_PROTO=MouseMan:/dev/input/mice

2.使用触摸屏输入

导入环境变量:export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0

3.使用鼠标和触摸屏同时输入

            导入环境变量: export QWS_MOUSE_PROTO=MouseMan:/dev/input/mice

                            export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0:$QWS_MOUSE_PROTO

  相关解决方案