Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.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
Macos Qt-OSX不正确的鼠标行为_Macos_Qt_Opengl_Opencv_User Interface - Fatal编程技术网

Macos Qt-OSX不正确的鼠标行为

Macos Qt-OSX不正确的鼠标行为,macos,qt,opengl,opencv,user-interface,Macos,Qt,Opengl,Opencv,User Interface,我的应用程序使用OpenCV、OpenGL和Qt来显示网络摄像头提要。它在Ubuntu上运行得很好(点击按钮可以正常工作),但在OSX上似乎存在UI问题。窗口显示,但我不能点击,我很快就得到了加载旋转的风车,它不会停止,直到我强制退出应用程序。以前有人遇到过这个问题吗?我通过在gui小部件的初始化中添加计时器解决了这个问题: m_timer = new QTimer(); connect(m_timer, SIGNAL(timeout()), this, SLOT(gotNewImage()))

我的应用程序使用OpenCV、OpenGL和Qt来显示网络摄像头提要。它在Ubuntu上运行得很好(点击按钮可以正常工作),但在OSX上似乎存在UI问题。窗口显示,但我不能点击,我很快就得到了加载旋转的风车,它不会停止,直到我强制退出应用程序。以前有人遇到过这个问题吗?

我通过在gui小部件的初始化中添加计时器解决了这个问题:

m_timer = new QTimer();
connect(m_timer, SIGNAL(timeout()), this, SLOT(gotNewImage()));
m_timer->start(1);

其中,gotNewImage()是我调用以获取新图像的函数。

您的应用程序是否包含在适当的应用程序包中?无论出于何种原因,OSX似乎不愿意通过
/appname
为原始可执行文件运行提供事件循环