[Qt-interest] QMainWindow close signal

Juan D Guzman lostinthecode at googlemail.com
Wed Mar 25 18:08:41 CET 2009


Denton Vis wrote:
> 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 
>>     
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   
the app is a mdi app so i'm defining the virtual closeEvent method is 
probably going to suite my needs just fine.  i will however keep this in 
mind also.

thanks everyone for your input.

cheers

jd



More information about the Qt-interest-old mailing list