Hi again.
Language: C++ (QT)
#include <QApplication>
#include <QLCDNumber>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
#include <QLineEdit>
#include <QObject>
class SimpleCalculator : public QWidget
{
Q_OBJECT
public:
//default constructor
SimpleCalculator(QWidget *parent = 0);
};
SimpleCalculator::SimpleCalculator(QWidget *parent)
{
// edited out - not shown here for obvious reasons
}
When I try to compile this, I always get vtable error. I don't know what to do now
I need to add some user-defined slots in order to complete this project. I even included QObject header file since Q_OBJECT macro requires it. It just doesn't work at all.
The other day I created a program similiar to this one and it worked just fine.