添加工具包

Qt Creator 将用于构建和运行项目的设置分组为工具包,可使跨平台和跨配置开发更轻松。每个工具包由一组值组成,这些值定义了一个环境,如要使用的设备、编译器、Qt 版本和调试器命令,以及一些元数据,如工具包的图标和名称。一旦定义了工具包,就可以选择它们来构建和运行项目。

您可以为桌面和以下类型的设备添加工具包:

添加工具包:

  1. 选择首选项>Kits
  2. 选择Add 从空工具包开始,或选择Clone 克隆所选工具包并编辑其首选项。

    套件偏好

  3. 根据构建系统和设备类型设置工具包首选项
  4. 选择OK 创建工具包。

设置默认套件

Qt Creator 如果没有足够的信息来选择要使用的工具包,则使用默认工具包。要将所选套件设置为默认套件,请选择 。Make Default

另请参阅 如何:管理工具包编译器工具包

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.