pyqt4 window resize event
<p>I'm using python3 and pyqt4 and I want some code to run every time my <code>QMainWindow</code> is resized.I would like something like this</p>

<pre><code>self.window.resized.connect(self.resize)
</code></pre>

<p>but <code>resized</code> is not a builtin function or method.
Can anyone help.</p>