1.下载安装Qt和VSIX插件
2.本地环境变量配置
添加如下:
D:\ProgramData\Qt\Qt5.14.2\5.14.2\msvc2017_64\lib
D:\ProgramData\Qt\Qt5.14.2\5.14.2\msvc2017_64\bin
3.VS配置
![](https://i-blog.csdnimg.cn/direct/59079b5bc05f4a1b950f6ec15a543dd7.png)
⭐项目右键->属性->调试->环境,添加如下:(很重要,踩坑经验)
D:\ProgramData\Qt\Qt5.14.2\5.14.2\msvc2017_64\bin;
添加后形如:
PATH=D:\FireProject\libtorch_release\libtorch\lib;D:/FireProject/qt/5.14.2/msvc2017_64/bin;%PATH%