philwinder
6th May 2008, 15:12
Hi,
Is it possible to have no scope somehow, since I would like to use a QSettings path that points to the directory of my program.
QString programPath = QCoreApplication::applicationDirPath();
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, programPath + "/config");
This sets the path to %PROGRAM DIR%\config\USER NAME\
I would like to save files to just %PROGRAM DIR%\config.
Cheers,
Phil Winder
Is it possible to have no scope somehow, since I would like to use a QSettings path that points to the directory of my program.
QString programPath = QCoreApplication::applicationDirPath();
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, programPath + "/config");
This sets the path to %PROGRAM DIR%\config\USER NAME\
I would like to save files to just %PROGRAM DIR%\config.
Cheers,
Phil Winder