去掉qt4启动后的鼠标指针,只想使用触摸屏

    技术2022-05-19  18

    2011-04-20

    这里只是在ARM-linux平台使用验证过。。。

     

    main()函数加入

     #include <QWSServer>,

    实例化QApplication后,添加QWSServer::setCursorVisible(false);

     

    这里有问题:

    在使用QT-4.7.0 opensource release/debug编译时会报错:

     

     /opt/QT/qt_project/secondQT/secondQT/appMain.cpp:: error: undefined reference to `QWSServer::setCursorVisible(bool)'

    error: collect2: ld returned 1 exit status

     

    是什么原因,但是在 qt-4.7.0 arm release 下不会,并且可以成功;

    暂时还没有解决,


    最新回复(0)