问题描述:
问题产生在VS+QT的工程中,使用QT VS TOOL工具。
QT C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe”已退出,代码为 3。
问题原因:
编译工程时优先要生成moc_(your ui file name)及ui_(your ui file name),对ui文件的属性设置中没有提前设置这个功能。设置方式可参考:
https://blog.csdn.net/weixin_44104687/article/details/121201174
一定要注意:“属性管理器中添加用户宏”
在属性管理器中新建属性表,然后添加如下用户宏:
过程不能少。