[Interest] Order of events on shutdown...

Bo Thorsen bo at vikingsoft.eu
Fri Jan 23 17:37:57 CET 2015


Den 23-01-2015 kl. 17:15 skrev Igor Mironchik:
> Hi.
>
> Does somebody know what is the order of events on shutdown of application?
>
> Say, if I click close button on window - close event occurs... What next?
> What signals will be emitted from QApplication? What events?
>
> And the same question for mobile platforms? If I press "Home" button what
> will be with application?
>
> I need it to carefully close application, close sockets, etc...

QCoreApplication::aboutToQuit() is your friend. If you connect a slot to 
that, you can close everything there.

Bo Thorsen,
Director, Viking Software.

-- 
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu



More information about the Interest mailing list