简介
当清理vs项目的时候,vs偶尔会把 ui_XXX.h 文件删除,使用uic XXX.ui -o ui_XXX.h
生成对应的文件即可。
遇到问题 无法打开包括文件: “ui_XXX.h”: No such file or directory (编译源文件 main.cpp)
遇到问题 错误 LNK2001 无法解析的外部符号 "public: virtual void * __cdecl XXXX::qt_metacast
参考链接
第一个问题的解决方案
https://bbs.csdn.net/topics/370125775
第二个问题的解决方案
https://www.cnblogs.com/lovebay/p/9337528.html
TIPS
做好git~~~