Disable maximize button for displayed image window

asked 2014-04-03 04:15:50 -0600

vishal733 gravatar image

updated 2014-04-03 04:28:23 -0600

berak gravatar image

I want to disallow the user from resizing a displayed image window.

One method I am already employing is to create window with following parameter:

cv::namedWindow("Frame",CV_WINDOW_AUTOSIZE);

CV_WINDOW_AUTOSIZE disables resizing of window by dragging.

However, I the window still shows a maximize button, which let's the user maximize the window to full screen. How can I disable this maximize button?

edit retag flag offensive close merge delete

Comments

Not possible in OpenCV. The interface is more for debugging purposes. If you need the possibility to adapt GUI interfaces use a language designed for that like Qt.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-03 04:56:05 -0600 )edit