Good day.

I am having trouble exiting my program when executed. It doesn't free up the memory space and the program keeps running after closing it.
I figured I should create the destuctor in order to close the program properly.

My class looks as follows:

class Controller : public QWidget
{
Q_OBJECT

public:
Controller(QWidget *parent = 0);
~Controller();


And implementation is as follows:

Controller::Controller(QWidget *parent): QWidget(parent)
{ .... }
Controller::~Controller()
{...}

I get the following error:

error LNK2019: unresolved external symbol "public: virtual __thiscall Controller::~Controller(void)" (??1Controller@@UAE@XZ) referenced in function "public: virtual void * __thiscall Controller::`scalar deleting destructor'(unsigned int)" (??_GController@@UAEPAXI@Z) in controller.obj

If anybody has any ideas. Please help or tell met how to ensure that the program closes completely.

Thanx in advance