[Qt-interest] customised signals and slots in qt

Thiago Macieira thiago at kde.org
Fri Jul 8 11:59:04 CEST 2011


On Friday, 8 de July de 2011 11:36:54 Andre Haupt wrote:
> 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.

And rerun qmake.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110708/8e352d99/attachment.bin 


More information about the Qt-interest-old mailing list