Documentation of Qt Creator variables?
-
Is the complete set of variables that may be used in Qt Creator configurations documented anywhere? I've seen mention of %{sourceDir} and %{buildDir}, but there appear to be many more variables - like %{CurrentProject:Name}, %{CurrentDocument:FileName} etc.
-
Just a few clicks away... "link":http://qt-project.org/doc/qtcreator-2.8/creator-build-settings.html#using-environment-variables.
-
Ask Qt Creator developers, but judging from the source file for Qt Creator responsible for handling paths, there are only those 2 variables available.
-
There are quite definitely more variables that work in build and run configs.
But yes, I suppose they may be inofficial. They are used in the default setup, though. See for instance Environment->External Tools->Edit with vi and Build & Run->General->Default build directory under Tools->Options (in an installation where you haven't changed those settings.) -
Just in case you are still looking for this... seems no one can find this list / Qt Creator variables button. Anyway, take a look at my answer on stackoverflow here. I am really surprised that this button is not available all over Qt Creator.... a bug that never got fixed?
-
In asked same question on stack voerflow in the past: http://stackoverflow.com/q/34271859/607407
If an useful answer pops up, let me know.
-
Did you click on the link in my post above? - the answer is in there :)
Here is the link in text:
http://stackoverflow.com/questions/35970727/use-of-variables-like-builddir-in-qtcreator-kit-settings-in-qt5