On Nov 22, 2007 9:48 AM, Dirk Wagener <[EMAIL PROTECTED]> wrote:

> Hi
>
> I have a QMainWindow.
> What signals are emitted when the user presses the close button [X] in
> the top right corner?
> I want to wire the relevant signals to invoke a local slot (in my main
> window class) to do some cleanup when the user closes
> the window with the close button.
>
> Can somebody please advise me how to do this correctly.
>
> Kind regards
> Dirk
>
> --
> Dirk Wagener <[EMAIL PROTECTED]>
> (MSc. Electronic Engineering, Stell.)
>
> Project Engineer
> Stone Three Signal Processing (Pty.) Ltd.
> http://www.stonethree.com
> +27 21 851 3123 (phone)
> +27 21 851 3127 (fax)
>
>
> We shall not cease from exploration and the end of all our exploring will
> be to arrive where we started... and know the place for the first time.
> T.S. Eliot
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


You can redefined the 'closeEvent' method I suppose.

-- 
Alex
http://alexandre.badez.googlepages.com/
[EMAIL PROTECTED]
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to