PDA

View Full Version : Link error with Q_OBJECT



psarangi
7th February 2014, 11:37
Hello,

I am getting the link error, when i am adding Q_OBJECT.
and please suggest me how to proceed further, without removing Q_OBJECT.



Thanks ..

below is the error type

unresolved external symbol "public: virtual struct QMetaObject const * __thiscall IconWidget::metaObject(void)const " (?metaObject@IconWidget@@UBEPBUQMetaObject@@XZ)

anda_skoa
7th February 2014, 16:05
Is your header properly added to the HEADERS variable in your .pro file?
Have you tried re-running qmake?

Cheers,
_