Results 1 to 3 of 3

Thread: Find users home path

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Find users home path

    Hello. I am pretty new in Qt programming and actually this is my first post.
    I would like to know how to determine the path of the home directory of the user you executed the binary of my application.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Find users home path

    Hi,

    The home directory can be retrieved via static methods; QDir::home() or QDir::homeDirPath().
    J-P Nurmi

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

    zyrotron (21st March 2007)

  4. #3
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Find users home path

    Thanks. That is all I need.
    Developers, developers, developers develop.

Similar Threads

  1. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  2. Which path should I use?
    By Dark_Tower in forum Newbie
    Replies: 3
    Last Post: 8th April 2006, 12:09

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.