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: