Thanx for the help. I forgot about destructors.
DrDonut how would you define the destructor in a class? I tried the following:
class Controller : public QWidget
{
Q_OBJECT
public:
Controller(QWidget *parent = 0);
~Controller();
but receives the following error:
error LNK2019: unresolved external symbol "public: void __thiscall Controller::exit(void)" (?exit@Controller@@QAEXXZ) referenced in function "public: virtual int __thiscall Controller::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Controller@@UAEHW4Call@QMetaObject@@ HPAPAX@Z) moc_CONTROLLER.obj
Do you have any idea?
Bookmarks