I have a class extending QWidget
class Boo : public QWidget {
Q_OBJECT
public:
Boo(QWidget* parent) : QWidget(parent) {}
};
If I just add it to cpp file I get the following error:
...[Boo::Boo(QWidget*)]+0x71): undefined reference to `vtable for Boo'
Why does it happen?
Is it possible to add the class to .cpp file anyway?