PDA

View Full Version : QSettings in Windows



ManuMies
14th December 2010, 11:26
I'm using Qt 4.7.0 in Windows.

Where does it actually store settings files in Windows (XP)? And how about if define the path manually? I'm currently putting the path to: .


QSettings settings(QSettings::UserScope, SETTINGS_ORGANIZATION);
settings.setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath() + "MyApp");

high_flyer
14th December 2010, 11:31
from the docs:

On Windows, NativeFormat settings are stored in the following registry paths:

1. HKEY_CURRENT_USER\Software\MySoft\Star Runner
2. HKEY_CURRENT_USER\Software\MySoft
3. HKEY_LOCAL_MACHINE\Software\MySoft\Star Runner
4. HKEY_LOCAL_MACHINE\Software\MySoft