PDA

View Full Version : Connecting signal to form that is closing



steg90
18th May 2007, 08:32
Hi,

This is probably very simple, just would like to know what the signal is when a form is going to close, I want attach this to my main form.

Regards,
Steve

marcel
18th May 2007, 08:39
It is not a signal but an event handler, namely QWidget::closeEvent().
Reimplement this in your form, and it will get called when you close the form.

Regards

steg90
18th May 2007, 08:45
Hi,

Thanks for that, but I want it to tell the main form which created this form that it is closing, guess I could emit a signal from the closeEvent method?

Regards,
Steve

marcel
18th May 2007, 08:54
Yes, you can.