Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are QtCreator build step variable names (such as %{buildDir})?

Tags:

qt-creator

I am specifying a build step which shall run in the project directory. So if this is supposed to work in general, I need a symbol representing project directory, similar to %{buildDir}, which represents the build directory.

Qt manual only mentions nonexistent (variables icon) Variables button. No such button appears on their screenshots or in the GUI I see.

I would appreciate full list of variables defined by QtCreator - like project path, target executable path, project .pro filename and so on.

like image 995
Tomáš Zato - Reinstate Monica Avatar asked Nov 08 '22 23:11

Tomáš Zato - Reinstate Monica


1 Answers

Answer can be found here, on Stack Overflow.

It is true that the button you mention is not visible in build settings. Documentation is inconsistent about this. Fortunately as you can see in the answer linked above - the Variables button is available in options.

It is sad that a bug mentioning this is not being fixed as there are many other posts like yours. Beside bug report I see no other way to make missing Variables button appear on the build settings page in Qt Creator.

like image 194
Filip Hazubski Avatar answered Jan 04 '23 03:01

Filip Hazubski