Results 1 to 2 of 2

Thread: Retrieve public folder

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Retrieve public folder

    Hi all,

    I'd like to retrieve the Public folder on Vista or the corresponding one o Xp, is there a way to do that with Qt? something like QDir::home ()?
    Or do I have to resort to Windows API?

    thanks in advance


    bye

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Retrieve public folder

    You must refer to the %PUBLIC% environment variable.
    You could use QProcess::systemEnvironment to get a list of env vars.
    The you can parse that list and find the public folder.

    Also, here is a list of shell folders for Vista and XP:
    http://www.digitalinsane.com/archive...shell_folders/

    Regards

  3. The following user says thank you to marcel for this useful post:

    Lele (26th July 2007)

Similar Threads

  1. Delayed Rendering of QTabWidget Tabs
    By mclark in forum Qt Tools
    Replies: 13
    Last Post: 14th May 2007, 22:53
  2. link error for visual studio.net 2003
    By berlin in forum Newbie
    Replies: 9
    Last Post: 29th September 2006, 16:06
  3. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04
  4. Repaint QTreeWidget
    By AceTheFace in forum Qt Programming
    Replies: 4
    Last Post: 9th August 2006, 23:34

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.