Results 1 to 1 of 1

Thread: Common Directories - getting system scope Application Data directory

  1. #1
    Join Date
    Sep 2008
    Posts
    54
    Thanks
    3
    Thanked 10 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default Common Directories - getting system scope Application Data directory

    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
    Last edited by mstegehu; 15th April 2011 at 11:11.

Similar Threads

  1. How to find Application Data directory?
    By Teuniz in forum Qt Programming
    Replies: 7
    Last Post: 26th July 2013, 14:02
  2. qmake: dependency of application on common shared library
    By PeterWurmsdobler in forum Qt Programming
    Replies: 5
    Last Post: 27th March 2009, 16:13
  3. Qt4: How to get the Common Application Data folder path?
    By Ankitha Varsha in forum Qt Programming
    Replies: 10
    Last Post: 21st October 2008, 12:14
  4. Ho to get the windows system directory with Qt4
    By rmagro in forum Qt Programming
    Replies: 4
    Last Post: 30th August 2007, 13:30
  5. Replies: 7
    Last Post: 28th June 2007, 17:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.