Qt笔记——解决添加Qt Designer Form Class时“allocation of incomplete type Ui::”

添加Qt Designer Form Class时,系统自动会在.cpp文件中添加ui_.h

但是在main.cpp中不会自动添加!!!

记住在main.cpp中添加.h!!!


比如:

main.cpp中添加

#include "qdlglogin.h"


其他问题这篇博客可以全部解决:

http://www.cryfeifei.cn/246.html

发布了287 篇原创文章 · 获赞 297 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/qq_41895747/article/details/104131407