PDA

View Full Version : Find users home path



zyrotron
21st March 2007, 20:43
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.

jpn
21st March 2007, 20:51
Hi,

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

zyrotron
21st March 2007, 21:09
Thanks. That is all I need. :)