I understand that in Qt4, there is no single flag you can set to have the mouse driven resizing of the window maintain a certain aspect ratio (say, 1:1). Is there a way to force a new size for the window while in “resizeEvent (QResizeEvent * event)”? the parameters of the event don’t seem to support change or give the user a chance to inject a new size.
My goal: GUI/Mouse resizing of a certain window will maintain its current aspect ratio, regardless of where you resize it from (sides, top, bottom, corners).
Duplicate Question?
How to maintain widgets aspect ratio in Qt?
Also checkout Sam Dutton’s solution @ http://lists.trolltech.com/qt-interest/2007-01/msg00204.html