[PyQt] QMainWindow close button [X] signals...

Alexandre Badez alexandre.badez at gmail.com
Thu Nov 22 09:01:28 GMT 2007


On Nov 22, 2007 9:48 AM, Dirk Wagener <dwagen at stonethree.com> 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 <dwagen at stonethree.com>
> (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 at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


You can redefined the 'closeEvent' method I suppose.

-- 
Alex
http://alexandre.badez.googlepages.com/
alexandre.badez at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071122/4c240f97/attachment.html


More information about the PyQt mailing list