There is an error in my header file:
field "ui" has incomplete type.
I have tried making ui
a pointer, but that doesn't work. I don't think I need to do that because I have already defined my MainWindowClass
in the namespace Ui
. This is my mainwindow.h
:
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
#include "ui_mainwindow.h"
namespace Ui {
class MainWindowClass;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0, Qt::WFlags flags=0);
~MainWindow();
public slots:
void slideValue(int);
private:
Ui::MainWindowClass ui; //error line
};
#endif // MAINWINDOW_H
See Question&Answers more detail:os