Preference file?
-
wrote on 3 Oct 2018, 21:43 last edited by GhostWolf 10 Mar 2018, 21:47
Hello,
Is there with qt and c++ an easy way to make/have a preference file just like on Android?
Something like you only have to write preference.setSetting("name_of_setting" , "value of setting") to save it, and to retrieve the part you do preference.getSetting("name_of_setting") and it will return the value of that "setting".
(Used setting as example, because it works on Android studio this way)
My program runs on windows. -
Hello,
Is there with qt and c++ an easy way to make/have a preference file just like on Android?
Something like you only have to write preference.setSetting("name_of_setting" , "value of setting") to save it, and to retrieve the part you do preference.getSetting("name_of_setting") and it will return the value of that "setting".
(Used setting as example, because it works on Android studio this way)
My program runs on windows.wrote on 3 Oct 2018, 21:47 last edited by@GhostWolf
Take a look at the QSettings class here -
@GhostWolf
Take a look at the QSettings class herewrote on 6 Oct 2018, 17:17 last edited by@kenchan said in Preference file?:
@GhostWolf
Take a look at the QSettings class hereJust had the chance to test. Thanx a lot
3/3