wladek
15th July 2010, 14:00
Hi all,
I am using QSettings and have seen that one could set the applicationName and the organizationName for a QApplication, so that QSettings can be used as:
QSettings settings; and the setting will reside into the already set applicationName and organizationName.
My question here: is there a possibility to achieve something similar also with the Scope of the QSettings.
If i would just do QSettings settings; the Scope would be QSettings:UserScope and I need QSettings:SystemScope.
One solution would be to use this constructor:
QSettings settings(QSettings::SystemScope, QApplication::organizationName());, but this involves more coding.
Is there any other better way to achieve this?
Thanks in advance,
Wladek
I am using QSettings and have seen that one could set the applicationName and the organizationName for a QApplication, so that QSettings can be used as:
QSettings settings; and the setting will reside into the already set applicationName and organizationName.
My question here: is there a possibility to achieve something similar also with the Scope of the QSettings.
If i would just do QSettings settings; the Scope would be QSettings:UserScope and I need QSettings:SystemScope.
One solution would be to use this constructor:
QSettings settings(QSettings::SystemScope, QApplication::organizationName());, but this involves more coding.
Is there any other better way to achieve this?
Thanks in advance,
Wladek