[Development] Building Always on same path?

Kai Koehne Kai.Koehne at qt.io
Thu Jun 16 15:25:50 CEST 2016



> -----Original Message-----
> From: Development [mailto:development-bounces+kai.koehne=qt.io at qt-
> project.org] On Behalf Of Reynaldo San Juan
> Sent: Thursday, June 16, 2016 3:13 PM
> To: development at qt-project.org
> Subject: [Development] Building Always on same path?
> 
> Hi
> I'm developing a litle app and
> I want to build always inside the user Home path. on Unix based systems is
> very easy puting the "~"char at the begining of the path, but o Windows "~"
> doesn't work, I used instead "%userprofile%" , like enviroment variable, but
> isn't working neither.
>
> Could you tell me how could I do that and use inside the .pro file to refer to
> enviroment vars?
>

You can write 

   $$getenv(USERPROFILE),

 or just 

   $$(USERPROFILE) 

to get the contents of %USERPROFILE%  environment variable

http://doc.qt.io/qt-4.8/qmake-advanced-usage.html#variables

> regards,
> Rey San Juan
> PD: Be nice with me, I'm a new one here :D & sorry my english.

Let me just point out that this is the mailing list where things regarding Qt development itself are discussed. For questions on how to use Qt, please use to interest at qt-project.org

Regards

Kai 


More information about the Development mailing list