Hi,

overwrite the closeEvent (http://riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwidget.html#closeEvent) of your main window. Alternatively you can set the WA_DeleteOnClose flag on your widget (http://riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwidget.html#setAttribute) which should terminate your threads if their parent is set to that window.

Philip

On 12/22/2010 09:49 AM, Luke Taylor wrote:
Hi everyone,

I have an application with several threads, one of which is a PyQT GUI, when I click on the close button, the PyQT GUI closes but the rest of the application keeps running, I would like to be able to intercept the close button event and force the whole application to quit. Does anybody know how I might do this?

Thanks for time and help,

Luke


_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to