Qt中报错error: allocation of incomplete type ‘Ui::xxxxxx‘(XXXXX为界面文件名)

最近在学习qt,创建UI文件,遇到了这个问题,报错: mainwindow.cpp:6:14: error: allocation of incomplete type ‘Ui::MainWindow’ mainwindow.h:7:22: note: forward declaration of ‘Ui::MainWindow’, 如下图: 但是程序是可以运行的,编译也不会报错。 只要是操作这个
相关文章
相关标签/搜索