PDA

View Full Version : Common Directories - getting system scope Application Data directory



mstegehu
15th April 2011, 12:03
With QDesktopServices I can get common directories. But only at User scope not at system scope like QSettings.

But if i use QSettings to store an ini file than the path choosen by QT is:

C:\Documents and Settings\USER\Application Data\OrganisationName\ApplicationName.ini

while the storage location for other application data retrieved with QDesktopServices is:

C:\Documents and Settings\USER\Local Settings\Application Data\OrganisationName\ApplicationName

Is there a way to get the System scope Application Data directory using QT?

C:\Documents and Settings\All Users\Application Data



And why is QDesktopServices:: DataLocation not equal to QSettings::IniFormat at UserScope?



In my case I need the SystemScope Application data directory name for a license file.

Regards,

Marcel