Qt4 C++ Resize window, preserve square form

32 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 answers

0
t.m. 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.