[Qt-interest] connect fails at type conversion

Sean Harmer sean.harmer at maps-technology.com
Mon Apr 20 14:39:04 CEST 2009


On Monday 20 April 2009 13:16:02 Matthias Pospiech wrote:
> At this point
>
> connect(waitThread, SIGNAL(waitFinished()), this,
> SIGNAL(positionReached()));
>
> I get the error
>
> 1>.\src\MicroSMCCtrl.cpp(176) : error C2243: 'Typumwandlung':
> Konvertierung von 'MicroSMCCtrlWaitThread *' zu 'const QObject *' ist
> bereits vorhanden, aber es kann nicht darauf zugegriffen werden.
>
>
> I do not see why.
You are missing the Q_OBJECT macro from the MicroSMCCtrlWaitThread class. Dn't 
forget to rerun qmake after you add it.

Sean




More information about the Qt-interest-old mailing list