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 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest