QT class compile error.
Hello,
I'm doing a tutorial on QT/KDE programming and (often) when i try to create a new Q_OBJECT class i get errors like these
stuff.moc.cpp: In static member function ‘static QMetaObject* stuff::staticMetaObject()’:
stuff.moc.cpp:54: error: ‘staticMetaObject’ is not a member of ‘QCanvasSprite’
stuff.moc.cpp: In member function ‘virtual void* Station::qt_cast(const char*)’:
stuff.moc.cpp:72: error: ‘qt_cast’ is not a member of ‘QCanvasSprite’
stuff.moc.cpp: In member function ‘virtual bool Station::qt_invoke(int, QUObject*)’:
stuff.moc.cpp:77: error: ‘qt_invoke’ is not a member of ‘QCanvasSprite’
stuff.moc.cpp: In member function ‘virtual bool Station::qt_emit(int, QUObject*)’:
stuff.moc.cpp:82: error: ‘qt_emit’ is not a member of ‘QCanvasSprite’
stuff.moc.cpp: In member function ‘virtual bool Station::qt_property(int, int, QVariant*)’:
stuff.moc.cpp:88: error: ‘qt_property’ is not a member of ‘QCanvasSprite’
The class is derived from QCanvasSprite, as you probably can see, and i used the Q_OBJECT macro.
|