12-16-2013 01:50 PM
I have a feature remember me in my app, when user selects it..i want next time he enters the app to see his past selected remember me option.
so i wanna store things locally in mobile, how can this be done?
Solved! Go to Solution.
12-16-2013 02:15 PM
If it's just options you should use QSettings...
It's not recommended to use this for application data however, instead you should use SQL, XML or JSON.
12-16-2013 02:32 PM
12-16-2013 03:10 PM
I thought I had, the link I gave you led to a document riddled with code examples.
If you need to see it working I suggest you download and take a look at the Persistant Objects app in the samples...
12-16-2013 08:29 PM
@BBSJdev... Is it my imagination, or are more and more posters asking others to write their code for them?
12-17-2013 02:13 AM
okey so to store i do this
QSettings settings("MySoft", "Star Runner");
i am trying to check how can i get settings.getvalue("jack")
how can that be done?
12-17-2013 02:21 AM
12-17-2013 04:26 AM - edited 12-17-2013 04:28 AM
The conf file is stored in the data folder so it will be persistent across application updates.
For storing settings this is absolutely the correct way to do it.
Only your app can access this folder so also secure.
As soon as you start storing user inputted data then don't fall in to the trap of sticking with this, 'just because it's easy', but instead look at using JSON, SQL or XML.