Use of variables like %{buildDir} in QtCreator kit settings in Qt5

Viewed 9584

In this documentation (under section "Specifying a Custom Executable to Run") I noticed that there is mention of what looks like a variable %{buildDir} in the field "Working directory".

enter image description here

I have struggled for a while now to find documentation for this feature. I would like to know first of all is there documentation for this somewhere?.

Secondary questions:

  • What other variables are available?
  • In which fields can they be used?
  • Can I access variables that I created in my project's .pro file?
  • Are there any other eval features or is this mechanism limited to variables?

Thanks!

2 Answers

In text edit widgets within Qt Creator (v5.14.0 and possibly earlier), there is an enter image description here icon at the right end. Click on it, and a dialog of all the possibilities comes up. Make sure that the caret is at the proper position in the text edit widget.

Related