What are QtCreator build step variable names (such

2019-02-23 09:47发布

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) http://doc.qt.io/qtcreator/images/qtcreator-variables-button.pngVariables 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.

标签: qt-creator
1条回答
成全新的幸福
2楼-- · 2019-02-23 10:01

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.

查看更多
登录 后发表回答