Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.3.2, 5.4.0
-
None
-
Linux
-
a659b4e56be9721389d28e212b4f4bcd393e6410
Description
When using qt.conf and the Settings Entry is not specified in qt.conf, create a QSettings using QSettings::SystemScope, and the settings are saved into the .conf file under the root directory "/". The .conf file should be created in the directory where the executable file is.
With the example code below, the settings are saved in "/MyDir/Settings.conf" instead of "./MyDir/Settings.conf"
QSettings settings(QSettings::SystemScope, "MyDir", "Settings");
settings.setValue("editor/wrapMargin", 80);
Please investigate.