<br><br><div class="gmail_quote">On Nov 22, 2007 9:48 AM, Dirk Wagener &lt;<a href="mailto:dwagen@stonethree.com">dwagen@stonethree.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>I have a QMainWindow.<br>What signals are emitted when the user presses the close button [X] in<br>the top right corner?<br>I want to wire the relevant signals to invoke a local slot (in my main<br>window class) to do some cleanup when the user closes
<br>the window with the close button.<br><br>Can somebody please advise me how to do this correctly.<br><br>Kind regards<br>Dirk<br><br>--<br>Dirk Wagener &lt;<a href="mailto:dwagen@stonethree.com">dwagen@stonethree.com</a>
&gt;<br>(MSc. Electronic Engineering, Stell.)<br><br>Project Engineer<br>Stone Three Signal Processing (Pty.) Ltd.<br><a href="http://www.stonethree.com" target="_blank">http://www.stonethree.com</a><br>+27 21 851 3123 (phone)
<br>+27 21 851 3127 (fax)<br><br><br>We shall not cease from exploration and the end of all our exploring will<br>be to arrive where we started... and know the place for the first time.<br>T.S. Eliot<br><br>_______________________________________________
<br>PyQt mailing list &nbsp; &nbsp;<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt
</a><br></blockquote></div><br><br>You can redefined the &#39;closeEvent&#39; method I suppose.<br clear="all"><br>-- <br>Alex<br><a href="http://alexandre.badez.googlepages.com/">http://alexandre.badez.googlepages.com/</a>
<br><a href="mailto:alexandre.badez@gmail.com">alexandre.badez@gmail.com</a>