I want to preserve the window aspect ratio when resizing it.
So the window should always have same width and height.
How to achieve this?
I want to preserve the window aspect ratio when resizing it.
So the window should always have same width and height.
How to achieve this?
According to answer for a similar question here. You have to re-implement resizeEvent(). If you do so, make sure your implementation does not have possible recursion problems.