widget.obj:-1: error: LNK2001: unresolved external symbol "protected: virtual void __cdecl QWidget::mouseLeaveEvent(class QEvent *)" (?mouseLeaveEvent@QWidget@@MEAAXPEAVQEvent@@@Z)
This is the error, which appeared in my project. I have 2 header file and 2 source file, also main.cpp In one of my header files i had a function like this:
protected:
virtual void mouseLeaveEvent(QEvent* event);
When this error appeared, i commented this function, but nothing has changed.