Qt 下载 #
Qt 安装包下载地址:https://download.qt.io/archive/qt/
目前官网最新版本为6.3,但建议下载5.12版本。
Qt 5.12之后的版本为源码需要自己编译,不利于新手学习。
Qt 5.12下载地址:https://download.qt.io/archive/qt/5.12/5.12.12/
官网提供Windows,Mac,Linux三个平台的安装包,根据自己电脑系统进行下载。
![](https://dashima.net/wp-content/uploads/2022/06/1656482057-image-1024x349.png)
因为Qt官网服务器在国外,下载速度较慢,可以点击上图对应版本后面 Details 查找国内站点进行下载镜像文件。
下图以下载Windows平台的Qt 5.12为例进行演示。
![](https://dashima.net/wp-content/uploads/2022/06/1656482118-image-1024x366.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656482133-image-1024x366.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656484644-image-1024x390.png)
Qt 安装 #
可在安装前断网,跳过登录步骤(以Windows为例,其他平台安装过程类似)。
双击,安装。
![](https://dashima.net/wp-content/uploads/2022/06/1656482156-image.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656482167-image.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656482199-image.png)
修改安装目录后点击next。请选择纯英文路径。
![](https://dashima.net/wp-content/uploads/2022/06/1656482231-image.png)
选择 Qt 安装的组件。
![](https://dashima.net/wp-content/uploads/2022/06/1656482268-image.png)
勾选组件如下图所示,主要包含了Qt模块,编译器和 Qt Creator ,可根据实际需求进行增减。
![](https://dashima.net/wp-content/uploads/2022/06/1656482294-image.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656482304-image.png)
勾选同意协议后点击next。
![](https://dashima.net/wp-content/uploads/2022/06/1656482338-image.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656482348-image.png)
![](https://dashima.net/wp-content/uploads/2022/06/1656482359-image.png)
安装中,请耐心等待。
![](https://dashima.net/wp-content/uploads/2022/06/1656482384-image.png)
安装完成。
![](https://dashima.net/wp-content/uploads/2022/06/1656482404-image.png)
Qt Creator 简介 #
Qt Creator 是基于 Qt 框架开发的一个 Qt 的 IDE (集成开发环境),之后我们的程序编写,调试,发布等都需要借助于Qt Creator 完成。它是是开源项目,大家可下载源码用来学习提高。
Qt Creator 主界面如下。
![](https://dashima.net/wp-content/uploads/2022/06/1656482435-image-1024x773.png)
个性化设置。
![](https://dashima.net/wp-content/uploads/2022/06/1656485303-image.png)
设置主题等。
![](https://dashima.net/wp-content/uploads/2022/06/1656485321-image-1024x834.png)
设置编辑器字体,以及语法高亮配色等。
![](https://dashima.net/wp-content/uploads/2022/06/1656485340-image-1024x834.png)