[Qt-interest] error LNK2001: unresolved external symbol "public: static struct QMetaObject const

Sean Harmer sean.harmer at maps-technology.com
Sun Dec 13 13:02:03 CET 2009


Him

On Sunday 13 December 2009 05:01:32 Santhosh Y wrote:
> Hi,
> 
> Following is the link error I am facing. Can anybody suggest what could
> be the problem here.
> I am able to find  "staticMetaObject at MyWidget@@2UQMetaObject@@B" when I
> search in my lib (nm -s WIDGET.lib)

I think that you need to add the Q_OBJECT macro to your class' header file and 
re-run qmake.

Sean



More information about the Qt-interest-old mailing list