Qt4 C++ Resize window, preserve square form

66 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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.