You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

lifthrasir

Trainee

  • "lifthrasir" is male
  • "lifthrasir" started this thread

Posts: 159

Location: France

Occupation: Student

  • Send private message

1

Thursday, June 7th 2007, 4:19pm

From QSettings documentation:

Quoted


Accessing the Windows Registry Directly

On Windows, QSettings also lets you access arbitrary entries in the system registry. This is done by constructing a QSettings object with a path in the registry and QSettings::NativeFormat. For example:

Source code

1
2
 QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Office",
                    QSettings::NativeFormat);

All the registry entries that appear under the specified path can be read or written through the QSettings object as usual (using forward slashes instead of backslashes). For example:

Source code

1
 settings.setValue("11.0/Outlook/Security/DontTrustInstalledFiles", 0);