> -----Original Message-----
> From: Development [mailto:development-bounces+kai.koehne=qt.io@qt-
> project.org] On Behalf Of Reynaldo San Juan
> Sent: Thursday, June 16, 2016 3:13 PM
> To: development@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 
inter...@qt-project.org

Regards

Kai 
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to