Qt4 C++ Resize window, preserve square form
<p>I want to preserve the window aspect ratio when resizing it.</p>

<p>So the window should always have same width and height.</p>

<p>How to achieve this?</p>