Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ XWarpPointer在wmware player的Ubuntu12.04上不起作用_C++_Qt_Ubuntu_Vmware_Xlib - Fatal编程技术网

C++ XWarpPointer在wmware player的Ubuntu12.04上不起作用

C++ XWarpPointer在wmware player的Ubuntu12.04上不起作用,c++,qt,ubuntu,vmware,xlib,C++,Qt,Ubuntu,Vmware,Xlib,您好,我正在尝试在Qt应用程序中使用Xlib移动鼠标指针: cout <<"move mouse to "<<x<<","<<y<<endl; XWarpPointer(defaultdisplay, None, desktoproot, 0, 0, 0, 0, x, y); XFlush(defaultdisplay); //QCursor::setPos(x,y); cout我终于找到了解决方案,我所需要做的就是在我的Ubuntu

您好,我正在尝试在Qt应用程序中使用Xlib移动鼠标指针:

cout <<"move mouse to "<<x<<","<<y<<endl;
XWarpPointer(defaultdisplay, None, desktoproot, 0, 0, 0, 0, x, y);
XFlush(defaultdisplay);
//QCursor::setPos(x,y);

cout我终于找到了解决方案,我所需要做的就是在我的Ubuntu虚拟机目录中编辑.vmx文件并添加以下行:

vmmouse.present = "FALSE"
这将禁用鼠标集成