I made the following program, but now i am getting an error. I searched for error almost 3 hours but worthless. I want to discuss the problem with you people.
I am getting the error: expected class-name before '{' token
#ifndef ASKDIALOG_H
#define ASKDIALOG_H
#include <QDialog>
#include "umerwindow.h"
namespace Ui {
class AskDialog;
}
class AskDialog : public QDialog, public UmerWindow // HERE IS THE ERROR
{
Q_OBJECT
public:
explicit AskDialog(QWidget *parent = 0);
void showdialog();
~AskDialog();
private slots:
void on_dokbutton_clicked();
private:
Ui::AskDialog *ui;
};
#endif // ASKDIALOG_H
ASK DIALOG .CPP FILE
#include "askdialog.h"
#include "ui_askdialog.h"
AskDialog::AskDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AskDialog)
{
ui->setupUi(this);
}
AskDialog::~AskDialog()
{
delete ui;
}
void AskDialog::on_dokbutton_clicked()
{
QString data=ui->dline->text();
showlist(data);
}
What should i do to resolve this problem? Please help.