[Qt-interest] how to resolve this moc linker error
Sean Harmer
sean.harmer at maps-technology.com
Mon Jul 19 19:43:45 CEST 2010
On Monday 19 July 2010 17:43:10 Matthias Pospiech wrote:
> this linker errors come
>
> mainwindow.obj:-1: error: Nicht aufgelöstes externes Symbol ""public:
> virtual struct QMetaObject const * __thiscall
> QCameraImage::metaObject(void)const "
> (?metaObject at QCameraImage@@UBEPBUQMetaObject@@XZ)".
> mainwindow.obj:-1: error: Nicht aufgelöstes externes Symbol ""public:
> virtual void * __thiscall QCameraImage::qt_metacast(char const *)"
> (?qt_metacast at QCameraImage@@UAEPAXPBD at Z)".
> mainwindow.obj:-1: error: Nicht aufgelöstes externes Symbol ""public:
> virtual int __thiscall QCameraImage::qt_metacall(enum
> QMetaObject::Call,int,void * *)"
> (?qt_metacall at QCameraImage@@UAEHW4Call at QMetaObject@@HPAPAX at Z)".
>
> However mainwindow.cpp is only using
> #include "QCameraWidget.h"
>
> which is derived from QCameraImage
>
> The whole project is within QtCreator.
>
> Now I wonder what I could do about this error.
Did you forget to include the Q_OBJECT macro in your header file?
Sean
More information about the Qt-interest-old
mailing list