[Qt-interest] QMainWindow close signal
Denton Vis
vistapro7 at hotmail.com
Wed Mar 25 14:00:27 CET 2009
Also, if you want to know when the last visible primary window in your app
is closing, you could use:
void QApplication::lastWindowClosed () [signal]
http://doc.trolltech.com/4.5/qapplication.html#lastWindowClosed
"Juan D Guzman" <lostinthecode at googlemail.com> wrote in message
news:49C91AD9.4030603 at gmail.com...
> 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
More information about the Qt-interest-old
mailing list