[Interest] Order of events on shutdown...

Thiago Macieira thiago.macieira at intel.com
Fri Jan 23 19:25:11 CET 2015


On Friday 23 January 2015 17:37:57 Bo Thorsen wrote:
> 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.

And QGuiApplication::lastWindowClosed(), which happens before aboutToQuit().
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list