[Qt-creator] Project variables?

apoenitz apoenitz at t-online.de
Mon Jan 27 20:04:26 CET 2025


On Sun, Jan 26, 2025 at 08:06:02PM +0100, Andrzej Telszewski wrote:
> Hello,
> 
> I wanted to ask if there is something like `Project` variables?
> 
> I know there are variables for the active project, like
> `%{ActiveProject:FilePath}`,
> but what about an opened project, that is not the active one?
> 
> My use for project variables is when I have a couple of projects open,
> and want to e.g. build one that is _not_ currently active, but I still
> want to use some of the variables.
> 
> Thanks for help!
 
You need some kind of "entry point" into the macro system.

Depending on your use case, %{CurrentDocument:Project:...} may play 
this role.

Andre'


More information about the Qt-creator mailing list