QT6+VS2019怎么配置就不过多描述了,CSDN上有很多的教程。
至于配置后,好多小伙伴发现代码出现了大量的语法错误。
解决方案如下:
VS2019 -> 扩展 -> QT VS Tools -> Qt Project Setting
把C++语言标准改到C++17或以上。QT6貌似是基于C++17的。应用、完成。
搞定!!
如果显示宏定义警告。
# error "Qt requires a C++17 compiler, and a suitable value for __cplusplus. On MSVC, you must pass the /Zc:__cplusplus option to the compiler."
继续在属性页添加