[Qt-interest] customised signals and slots in qt
Sahana Bhaskar
Sahana_Bhaskar at infosys.com
Fri Jul 8 13:37:03 CEST 2011
I see that in my case there is no .pro file. And also this class I am talking about does not have a .moc file either. Is it necessary? I added this class to my existing code. Do I need some steps to add .moc? as .moc usually gets added if you have an UI related to that class which is not relevant in this case.
Thanks,
Sahana
-----Original Message-----
From: qt-interest-bounces+sahana_bhaskar=infosys.com at qt.nokia.com [mailto:qt-interest-bounces+sahana_bhaskar=infosys.com at qt.nokia.com] On Behalf Of Thiago Macieira
Sent: Friday, July 08, 2011 3:29 PM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] customised signals and slots in qt
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
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
More information about the Qt-interest-old
mailing list