Results 1 to 2 of 2

Thread: Log file Location for Windows 7 Application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Log file Location for Windows 7 Application

    Applications should not write to the "Program Files" location at run time: this is blocked by Windows 7. You have a couple of options depending on what the intended use of the file is, its permanence, and how easy you want it to be found by your users. Use QDesktopServices to locate the user's documents directory or the application data/cache directory. You could also write to the system temporary directory (QTemporaryFile).

    MSDN has a whole bunch of guidance on this if you want to go Windows-specific.

  2. The following user says thank you to ChrisW67 for this useful post:

    stefanadelbert (22nd July 2010)

Similar Threads

  1. Replies: 3
    Last Post: 12th July 2010, 06:25
  2. Replies: 4
    Last Post: 11th March 2010, 13:52
  3. Replies: 4
    Last Post: 16th February 2010, 17:42
  4. Replies: 2
    Last Post: 2nd April 2008, 17:28
  5. Replies: 3
    Last Post: 25th May 2007, 07:49

Tags for this Thread

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.