On 1/30/06, <b class="gmail_sendername">Pradeepto Bhattacharya</b> <<a href="mailto:pradeeptob@gmail.com">pradeeptob@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Aditya,<br><br> I am wildly guessing from the information that you have provided<br>that you forgot to use the moc tool perhaps. Please check the<br>following link -> <a href="http://doc.trolltech.com/3.3/commonproblems.html">
http://doc.trolltech.com/3.3/commonproblems.html</a></blockquote><div><br>
Indeed, that was the problem. Ananth replied to me just a while back. <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hope that helps. :)<br><br> Cheers!<br><br>Pradeepto<br><br><br><br>On 1/30/06, Aditya Mooley <
<a href="mailto:aditya.ml@gmail.com">aditya.ml@gmail.com</a>> wrote:<br>> I am trying to use slots and signals in a class which inherits QObject<br>> class.<br>> When I compile this program I get an error<br>
> "/home/aditya/koppermine/src/cpgapiclient.cpp:42: undefined<br>> reference to `vtable for cpgAPIClient'"<br>><br>> Here's what I am trying to do:<br>><br>> cpgapiclient.h<br>> ===========
<br>><br>> #ifndef CPGAPICLIENT_H<br>> #define CPGAPICLIENT_H<br>><br>> #include <qstring.h><br>> #include <kio/job.h><br>><br>> /**<br>> Class to implement the API calls to the remote CPG installation.
<br>><br>> @author Aditya Mooley<br>> */<br>> class cpgAPIClient : public QObject {<br>><br>> Q_OBJECT<br>><br>> public:<br>> //cpgAPIClient(QString, QString);<br>> cpgAPIClient(QString);
<br>> ~cpgAPIClient();<br>> void setConfigData(const QString &, const QString &, const QString &,<br>> const QString &);<br>> void jobResult(KIO::Job *);<br>> void jobData(KIO::Job *, const QByteArray &);
<br>> ......<br>> }<br>><br>> cpgapiclient.cpp<br>> =============<br>> cpgAPIClient::cpgAPIClient(QString method)<br>> { // Error is displayed for this line<br>> APImethod = method;<br>>
<br>> connect(this, SIGNAL(conError(const QString &)), this,<br>> SLOT(handleConError(const QString &)));<br>> connect(this, SIGNAL(returnReceivedOK()), this, SLOT(receivedOK()));<br>> }<br>>
<br>> cpgAPIClient::~cpgAPIClient()<br>> { // Error is displayed for this line<br>> }<br>> .............<br>><br>> Thanks for all your help<br>><br>> Regards,<br>><br>> --<br>> Aditya Mooley
<br>> =============================================================<br>> PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com</a><br>> Coppermine Picture Gallery: <a href="http://coppermine.sf.net">
http://coppermine.sf.net</a><br>> =============================================================<br>> _______________________________________________<br>> KDE-india mailing list<br>> <a href="mailto:KDE-india@kde.org">
KDE-india@kde.org</a><br>> <a href="https://mail.kde.org/mailman/listinfo/kde-india">https://mail.kde.org/mailman/listinfo/kde-india</a><br>><br>><br>><br>_______________________________________________<br>KDE-india mailing list
<br><a href="mailto:KDE-india@kde.org">KDE-india@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kde-india">https://mail.kde.org/mailman/listinfo/kde-india</a><br></blockquote></div><br><br clear="all"><br>--
<br>Aditya Mooley<br>=============================================================<br>PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com</a><br>Coppermine Picture Gallery: <a href="http://coppermine.sf.net">
http://coppermine.sf.net</a><br>=============================================================