使用了Q_OBJECT宏之后在编译的时候会遇到下面的错误: --------------------Configuration: testqt - Win32 Debug-------------------- Linking... test.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall MyMainWindow::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@MyMainWindow@@UAEHW4Call@QMetaObject@@HPAPAX@Z) test.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall MyMainWindow::qt_metacast(char const *)" (?qt_metacast@MyMainWindow@@UAE阅读全文>
发表于 @ 2009年05月13日 13:47:00|评论(loading...)|举报|收藏