Stop program execution on window close [closed]

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-02 09:35:12.409629


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

i think this feature added.

sturkmen gravatar imagesturkmen ( 2020-10-02 09:35:55 -0500 )edit