When I run my opencv application in qt and I don't display any images and then I click exit, the program outputs this.
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
This is what happens when I select an image to be displayed by the application, then I hit exit.
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
Here is the code that I'm using to close the windows that pop up. I'm also using imshow in opencv to display the images, I'm not sure if that has anything to do with the problem.
void opencv_Window::on_DestroyWindowButton_clicked()
{
destroyAllWindows();
}
void opencv_Window::on_ExitButton_clicked()
{
destroyAllWindows();
close();
}