Results 1 to 4 of 4

Thread: Save log file to "all user\application data\"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Save log file to "all user\application data\"

    Check the Microsoft requirements on MSDN. Eg for Windows 7:

    "All application data that must be shared among users on the computer should be stored within ProgramData. All application data exclusive to a specific user and not to be shared with other users of the computer must be stored in Users\<username>\AppData."

    As for where the directories are, check out QDesktopServices::storageLocation

  2. #2
    Join Date
    Mar 2011
    Location
    Russia, Lipetsk
    Posts
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Save log file to "all user\application data\"

    I used in my project It is:

    Qt Code:
    1. QDir::homePath()
    To copy to clipboard, switch view to plain text mode 

    In Win XP it is C:/Documents and Settings/%USERNAME%/
    In win 7 C:/Users/<username>/

Similar Threads

  1. Replies: 8
    Last Post: 5th November 2012, 08:43
  2. Replies: 6
    Last Post: 16th June 2011, 13:20
  3. Replies: 3
    Last Post: 15th February 2010, 17:27
  4. Replies: 3
    Last Post: 8th July 2008, 19:37
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

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
  •  
Qt is a trademark of The Qt Company.