Important: Please read the Qt Code of Conduct -

Variable for accessing users root portion of path

  • I am on a mac and have a user directory at this location:


    If I were on someone elses computer, I might be at


    the problem I have in my QMake file is we share a common directory starting at the root of their user directory such as:


    In my QMake file I want to define I need a variable that does something like this:


    I know this has to be something easy to do, but I can't find it! Can someone give me a hint where to find this?

  • Lifetime Qt Champion


    Do you mean something like $HOME environment variable ?

  • Thats it.

Log in to reply