在本页中

设置默认构建和运行目录

要设置运行配置的默认工作目录,请转到首选项>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.