CodePudding user response:
Add QMainWindow header file??
CodePudding user response:
What's the topic main version?
Founded in 4.8 is a QMainWindow project, directly generated by the mainWindow. H is such ah:
# # ifndef MAINWINDOW_H
# define MAINWINDOW_H
#include
The namespace Ui {
The class MainWindow.
}
The class MainWindow: public QMainWindow
{
Q_OBJECT
Public:
Explicit MainWindow (QWidget * parent=0);
~ MainWindow ();
Private:
Ui: : MainWindow * Ui;
};
# endif//MAINWINDOW_H
Your mainWindow. H is # include & lt; QtGui> ????? I generate # include & lt; QMainWindow>
CodePudding user response: