我的程序中加入了Q_OBJECT,就会报错:
error LNK2001: 无法解析的外部符号 "public: virtual struct QMetaObject const * __thiscall SphereCut::metaObject(void)const " (?metaObject@SphereCut@@UBEPBUQMetaObject@@XZ)
error LNK2001: 无法解析的外部符号 "public: virtual void * __thiscall SphereCut::qt_metacast(char const *)" (?qt_metacast@SphereCut@@UAEPAXPBD@Z)
error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall SphereCut::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SphereCut@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
fatal error LNK1120: 3 个无法解析的外部命令
有谁知道怎么办?请教高手!急急急!