On Tue, Apr 7, 2015 at 6:05 PM, Eddie Sutton <edsut...@gmail.com> wrote: > Currently I save QSettings in closeEvent. > > On Android this event is not raised when user presses that Android square > icon, then swipes app window to close. > > How do I handle saving work user may have been editing? > > -Ed
Hi Ed, Look at QGuiApplication::applicationStateChanged signal. When your app transits from Qt::ApplicationActive to anything else (Qt::ApplicationSuspended or Qt::ApplicationInactive), it's worth to save everything; next user can swipe it out. It looks to be a rather cross-platform way, and it may work for iOS as well. Take care! Regards, Robert _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest