steve.bush
18th March 2011, 22:44
HEADER FILE
#include <QMainWindow>
#include "ui_form.h"
class Form1:public QMainWindow
{
Q_OBJECT
public:
Form1();
~Form1();
protected slots:
void function1();
}
CPP FILE
#include "form1.h"
#include <QDebug>
#include <QFile>
#include <QTextStream>
#include <QTimer>
#include <QDialog>
#include <QMessageBox>
#include <QStringListModel>
Form1::Form1():QMainWindow(NULL,0)
{
connect(ui.action_button, SIGNAL(clicked()), this, SLOT(function1()));
}
void Form1::function1()
{
}
Form1::~Form1()
{
}
Error is on line 12 in the CPP file.
#include <QMainWindow>
#include "ui_form.h"
class Form1:public QMainWindow
{
Q_OBJECT
public:
Form1();
~Form1();
protected slots:
void function1();
}
CPP FILE
#include "form1.h"
#include <QDebug>
#include <QFile>
#include <QTextStream>
#include <QTimer>
#include <QDialog>
#include <QMessageBox>
#include <QStringListModel>
Form1::Form1():QMainWindow(NULL,0)
{
connect(ui.action_button, SIGNAL(clicked()), this, SLOT(function1()));
}
void Form1::function1()
{
}
Form1::~Form1()
{
}
Error is on line 12 in the CPP file.