On Windows all this information You can read from system register from key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\Shell Folders. In example to read location of All User Desktop :
QSettings register("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders",
QSettings::NativeFormat);
QString allUserDesktop
( register.
value("Common Desktop").
toString());
QSettings register("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", QSettings::NativeFormat);
QString allUserDesktop( register.value("Common Desktop").toString());
To copy to clipboard, switch view to plain text mode
Bookmarks