[Qt-interest] customised signals and slots in qt
Sahana Bhaskar
Sahana_Bhaskar at infosys.com
Fri Jul 8 11:09:51 CEST 2011
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)
Note:object_b(in the code snippet below) is an instance of FileData;
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 Bill Crocker
Sent: Friday, July 08, 2011 7:41 AM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] customised signals and slots in qt
>>
>> Connect(object_a, SIGNAL( signal1()),object_b, SLOT(slot1()));
>
> That should be:
>
> connect(object_a, SIGNAL(signal1()), object_b, SLOT(slot1()));
>
No, that should be:
if( !connect(object_a, SIGNAL(signal1()), object_b, SLOT(slot1())) )
Q_ASSERT(false);
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com<mailto:Qt-interest at qt.nokia.com>
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
**************** 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***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110708/4e26e6a6/attachment.html
More information about the Qt-interest-old
mailing list