Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11.1
-
None
Description
On Android (and potentially other mobile platforms), applications can be killed by the OS after having being suspended. An application is supposed to listen to changes in Qt.application.state and save its state if the state becomes Qt.ApplicationSuspended.
Unfortunatly, if the application is killed soon after having been suspended (which is often the case on Android), the destructor of QQmlSettings is not executed and pending changes are not written to disk.
The only solution I can see is to add a new method synch() to Qt.labs.settings.Settings, such that the user can manually call it if needed after they have modified the settings when the application becomes suspended.
Attachments
Issue Links
- is duplicated by
-
QTBUG-83471 QML Settings object has no sync()
-
- Closed
-