[Qt-interest] QMainWindow close signal
Alexandre Beraud
aberaud at infflux.com
Tue Mar 24 18:46:08 CET 2009
Hi,
I think that you should use the (virtual) QWidget::closeEvent() function:
http://doc.trolltech.com/4.3/qwidget.html#closeEvent
Regards,
Alex
Juan D Guzman a écrit :
> I was wondering if there is a signal that I can hook into on the window
> close event? Or should I just put my code in the destructor for the window?
>
> I looked into the QMainWindow docs and saw none. I'm suspecting that
> putting my code in the destructor will give me the same effect but
> coming from C# i'm used to catching the close event.
>
> Cheers,
>
> JD
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
--
BERAUD Alexandre
Ingénieur Développement
Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site : www.infflux.com
More information about the Qt-interest-old
mailing list