Home > Mobile >  Would you please tell me why the complains
Would you please tell me why the complains

Time:03-19

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:

reference 1/f, mango black response:
add QMainWindow header file??

To solve, thank you

CodePudding user response:

refer to the second floor ZefinNg response:
topic main version is how much?
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>

To solve, thank you
  •  Tags:  
  • Qt
  • Related