Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm not sure if this will work and I don't have Qt compiled at this moment but try something like this:

cvNamedWindow( win_title, CV_WINDOW_AUTOSIZE | CV_WINDOW_KEEPRATIO );

Without Qt, when I maximized the window, the image kept it's size and aspect ratio.

Check these two documentation about windows: