invalid use of incomplete type 'struct Ui::MainWindow怎么解决?
mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)': mainwindow.cpp:12: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:14: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:17: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:18: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:19: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp: In destructor 'virtual MainWindow::~MainWindow()': mainwindow.cpp:33: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:34: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:35: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:39: warning: possible problem detected in invocation of delete operator: mainwindow.cpp:39: warning: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: warning: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:39: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. mainwindow.cpp: In member function 'void MainWindow::on_toolButton_browser_clicked()': mainwindow.cpp:45: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:53: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:54: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp: In member function 'int MainWindow::SearchIntofile(const QString&, const QString&, QTreeWidgetItem*)': mainwindow.cpp:75: warning: unused variable 'i' mainwindow.cpp: In member function 'int MainWindow::FindFile(const QString&)': mainwindow.cpp:111: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:119: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp: In member function 'int MainWindow::search()': mainwindow.cpp:138: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:146: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp: In member function 'int MainWindow::AddFav()': mainwindow.cpp:179: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow' mainwindow.cpp:180: error: invalid use of incomplete type 'struct Ui::MainWindow' mainwindow.h:10: error: forward declaration of 'struct Ui::MainWindow'