在/etc/profile中添加环境变量

export set QWS_MOUSE_PROTO="TSLIB:/dev/input/event0 Intellimouse:/dev/input/mouse0"

刚开始只写了export set QWS_MOUSE_PROTO=TSLIB:/dev/input/event0

所以只会支持触摸屏

只有在插上了USB鼠标后才会在input下产生设备节点mouse0

 

QWS_MOUSE_PROTO主要是帮助QMouseDriverFactory也就是鼠标设备的枚举者帮助创建鼠标设备

默认的环境变量是空