当我在qt中运行我的opencv应用程序并且我没有显示任何图像然后我点击退出时,程序会输出它。
Starting /home/ubuntu/Documents/opencvWork/OpencvInterface/build-OpencvInterface-Desktop-Release/OpencvInterface...
/home/ubuntu/Documents/opencvWork/OpencvInterface/build-OpencvInterface-Desktop-Release/OpencvInterface exited with code 0
当我选择要由应用程序显示的图像时会发生这种情况,然后我点击退出。
Starting /home/ubuntu/Documents/opencvWork/OpencvInterface/build-OpencvInterface-Desktop-Release/OpencvInterface...
pure virtual method called
terminate called without an active exception
The program has unexpectedly finished.
/home/ubuntu/Documents/opencvWork/OpencvInterface/build-OpencvInterface-Desktop-Release/OpencvInterface crashed
这是我用来关闭弹出窗口的代码。我也在opencv中使用imshow来显示图像,我不确定这是否与问题有关。
void opencv_Window::on_DestroyWindowButton_clicked()
{
destroyAllWindows();
}
void opencv_Window::on_ExitButton_clicked()
{
destroyAllWindows();
close();
}