Stop program execution on window close [closed]

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

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,
Viktor

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

Comments

no, there isn't.

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

Too bad :(
Thanks berak!

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

i think this feature added.

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