Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Stop program execution on window close

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