[Qt-creator] Project variables?
Andrzej Telszewski
andrzej at telszewski.com
Mon Jan 27 21:58:30 CET 2025
On 27/01/2025 20:04, apoenitz wrote:
> 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.
But that requires a particular document to be open.
More information about the Qt-creator
mailing list