1、QwebEngine需要MSVC的编译环境,MinGW不支持。
下载VS2019,下载地址:https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/。安装时候只选择MSVC(C++)工具就可以。
应该还需要windows kits,因为自己电脑已经安装了windows kits,所以没有安装。
2、下载openSSL
QT访问https需要openSSL的支持。下载地址:https://slproweb.com/products/Win32OpenSSL.html
3、QT项目的.pro文件中加入
INCLUDEPATH += C:/OpenSSL-Win32/include