Stop program execution on window close

asked 2015-05-27 12:24:17 -0500

viktor gravatar image

Hi folks,

I'm using highgui to create a new namedWindow to display an image.
I'd like to stop program execution when the user closes the window by pressing the 'x' button.
Is there a way to check if the windows was closed, apart from using cvGetWindowHandle and testing IsWindowVisible subsequently (windows only)?
I'm using v3.0-rc1 with QT5 and OpenGL support.

Many thanks,

edit retag flag offensive close merge delete


no, there isn't.

berak gravatar imageberak ( 2015-05-27 12:28:05 -0500 )edit

Too bad :(
Thanks berak!

viktor gravatar imageviktor ( 2015-05-27 12:49:07 -0500 )edit