androidc++qtsharedpreferencesqsettings

qt's QSettings to access the SharedPreferences in android


In Qt (5.3)+Android, does anyone know the way to access the values in the Android's SharedPreferences with qt's QSettings?

I've tried several combinations of QSettings but they don't seem to catch the right one. The might be a QSettings specifiying the filepath but it does not seem too clear where it is stored.


Solution

  • They are two different things and it is currently not possible to access or write Android Shared Preferences via QSettings. There might be some integration in the future, or at least some QtAndroidExtras addition, but as of writing this (Qt 5.3.1), it is not there.