QT4.7隐藏鼠标指针

在qt源码下的src/gui/embedded/qwscursor_qws.h中加入

#define QT_NO_QWS_CURSOR    1

qt编译加上linuxinput去掉tslib

加入编译选项:-no-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -qt-mouse-linuxinput适合电容屏

运行的时候加入环境变量

export QWS_MOUSE_PROTO="LinuxInput:/dev/xxxx"

你可能感兴趣的:(QT4.7隐藏鼠标指针)