本页内容

设置默认构建和运行目录

要设置运行配置的默认工作目录,请转至“Preferences ” > “Build & Run ” > “Default Build Properties ”。

“构建与运行”首选项中的“默认构建属性”选项卡

设置默认构建目录

在“Default build directory ”字段中,您可以使用选择“变量 ”(Variables )时列出的变量,以及特定套件可用的变量。要查看这些变量,请转至Projects >Build Settings ,然后在套件的“Build Directory ”字段中选择“变量 ”。

设置默认工作目录

在“Default working directory ”中,指定用于构建运行配置默认工作目录的模板。您可以使用在选择“变量 ”时列出的变量。

您还可以使用QTC_DEFAULT_WORKING_DIRECTORY_TEMPLATE 环境变量来设置用于创建默认工作目录的模板。

另请参阅 “配置项目以进行构建”和“配置项目以进行运行”。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.