解决方法:Qt 6.1添加MSVC2019构建套件

Source

一、问题

打开 Qt Creator,点击 工具,选择 选项

发现 Kits 中缺少 Qt 6.1.0 MSVC2019 64bit,无法使用

二、解决方法

2.1 安装Visual C++库的运行时组件

https://visualstudio.microsoft.com/zh-hans/downloads/

滑到最下面,选择 其他工具和框架

选择 Microsoft Visual C++ Redistributable for Visual Studio 2019 x64

2.2 安装Visual Studio 2019生成工具

https://visualstudio.microsoft.com/zh-hans/downloads/

滑到最下面,选择 Visual Studio 2019 工具

选择 Visual Studio 2019 生成工具

选择 C++ 生成工具

耐心等待安装

然后重新打开 Qt Creator 查看 Kits,此时 MSCV2019 变为可用状态,安装完毕!


• 由 Leung 写于 2021 年 4 月 7 日

• 参考:Qt 5.15.2添加msvc2019编译环境(不需要安装VS)