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