[Qt-interest] customised signals and slots in qt
Andre Haupt
andre at bitwigglers.org
Fri Jul 8 11:36:54 CEST 2011
On Fri, Jul 08, 2011 at 02:39:51PM +0530, Sahana Bhaskar wrote:
> Sorry but I get a linker error not syntax error saying:
> error LNK2001: unresolved external symbol "public: virtual int __thiscall FileData::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall at FileData@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
> FileData.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall FileData::qt_metacast(char const *)" (?qt_metacast at FileData@@UAEPAXPBD at Z)
> FileData.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall FileData::metaObject(void)const " (?metaObject at FileData@@UBEPBUQMetaObject@@XZ)
make sure that
- FileData is derived from QObject
- You have the Q_OBJECT macro in your class declaration
- You have filedata.h in the HEADERS section of your *.pro file so that moc can find it.
regards,
Andre
More information about the Qt-interest-old
mailing list