https://aqtinstall.readthedocs.io/en/latest/
配合 Qt Creator 使用。
Installation
https://aqtinstall.readthedocs.io/en/latest/installation.html
文档里介绍的是用 pip 安装的方法。如果是在 Windows 系统,这里更建议用 Scoop 安装使用。
1 | scoop install aqtinstall |
Getting Started
https://aqtinstall.readthedocs.io/en/latest/getting_started.html
先用list-qt
命令,查看可用的 Qt 版本。
1 | aqt list-qt windows desktop |
需要的参数包括主机,目标,等等。
1 | aqt list-qt windows desktop --arch 6.8.0 |
用于查看该版本所有可用的架构。
1 | aqt install-qt <host> <target> (<Qt version> | <spec>) [<arch>] |
aqt 安装 Qt 的位置,默认在命令行终端当前所在的目录。建议通过--outputdir
参数指定安装位置,通常的做法是安装在 C 盘的Qt
目录。
1 | aqt install-qt --outputdir c:\Qt windows desktop 6.8.0 win64_mingw |
要删除也很简单,直接删除相应文件夹就行。
说些什么吧!