On 1/30/06, <b class="gmail_sendername">Pradeepto Bhattacharya</b> &lt;<a href="mailto:pradeeptob@gmail.com">pradeeptob@gmail.com</a>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 -&gt; <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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hope that helps. :)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cheers!<br><br>Pradeepto<br><br><br><br>On 1/30/06, Aditya Mooley &lt;
<a href="mailto:aditya.ml@gmail.com">aditya.ml@gmail.com</a>&gt; wrote:<br>&gt; I am trying to use slots and signals in a class which inherits QObject<br>&gt; class.<br>&gt;&nbsp;&nbsp;When I compile this program I get an error<br>
&gt; &quot;/home/aditya/koppermine/src/cpgapiclient.cpp:42: undefined<br>&gt; reference to `vtable for cpgAPIClient'&quot;<br>&gt;<br>&gt;&nbsp;&nbsp;Here's what I am trying to do:<br>&gt;<br>&gt;&nbsp;&nbsp;cpgapiclient.h<br>&gt;&nbsp;&nbsp;===========
<br>&gt;<br>&gt;&nbsp;&nbsp;#ifndef CPGAPICLIENT_H<br>&gt;&nbsp;&nbsp;#define CPGAPICLIENT_H<br>&gt;<br>&gt;&nbsp;&nbsp;#include &lt;qstring.h&gt;<br>&gt;&nbsp;&nbsp;#include &lt;kio/job.h&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;/**<br>&gt;&nbsp;&nbsp;Class to implement the API calls to the remote CPG installation.
<br>&gt;<br>&gt;&nbsp;&nbsp;@author Aditya Mooley<br>&gt;&nbsp;&nbsp;*/<br>&gt;&nbsp;&nbsp;class cpgAPIClient : public QObject {<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Q_OBJECT<br>&gt;<br>&gt;&nbsp;&nbsp;public:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//cpgAPIClient(QString, QString);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cpgAPIClient(QString);
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;~cpgAPIClient();<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void setConfigData(const QString &amp;, const QString &amp;, const QString &amp;,<br>&gt; const QString &amp;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void jobResult(KIO::Job *);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void jobData(KIO::Job *, const QByteArray &amp;);
<br>&gt;&nbsp;&nbsp;......<br>&gt;&nbsp;&nbsp;}<br>&gt;<br>&gt;&nbsp;&nbsp;cpgapiclient.cpp<br>&gt;&nbsp;&nbsp;=============<br>&gt;&nbsp;&nbsp;cpgAPIClient::cpgAPIClient(QString method)<br>&gt;&nbsp;&nbsp;{ // Error is displayed for this line<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;APImethod = method;<br>&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;connect(this, SIGNAL(conError(const QString &amp;)), this,<br>&gt; SLOT(handleConError(const QString &amp;)));<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;connect(this, SIGNAL(returnReceivedOK()), this, SLOT(receivedOK()));<br>&gt;&nbsp;&nbsp;}<br>&gt;
<br>&gt;&nbsp;&nbsp;cpgAPIClient::~cpgAPIClient()<br>&gt;&nbsp;&nbsp;{ // Error is displayed for this line<br>&gt;&nbsp;&nbsp;}<br>&gt;&nbsp;&nbsp;.............<br>&gt;<br>&gt;&nbsp;&nbsp;Thanks for all your help<br>&gt;<br>&gt;&nbsp;&nbsp;Regards,<br>&gt;<br>&gt; --<br>&gt; Aditya Mooley
<br>&gt; =============================================================<br>&gt; PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com</a><br>&gt; Coppermine Picture Gallery: <a href="http://coppermine.sf.net">
http://coppermine.sf.net</a><br>&gt; =============================================================<br>&gt; _______________________________________________<br>&gt; KDE-india mailing list<br>&gt; <a href="mailto:KDE-india@kde.org">
KDE-india@kde.org</a><br>&gt; <a href="https://mail.kde.org/mailman/listinfo/kde-india">https://mail.kde.org/mailman/listinfo/kde-india</a><br>&gt;<br>&gt;<br>&gt;<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>=============================================================