main()函数加入 #include <QWSServer>,实例化QApplication后,添加QWSServer::setCursorVisible(false); 这样就可以只隐藏鼠标,而触摸还是正常的。