0
我正在Leap
和Qt
Mac OS X
上工作,我試圖在手指位置發生變化時發出信號。LeapMotion,Qt和信號
我(想),所用QObject
做到這一點:
class SampleListener : public Leap, public QObject{
Q_Object
class def }
但編譯後是有問題moc_SampleListener
:
moc_SampleListener.cpp:94:18: error: no member named 'staticMetaObject' in 'Leap::Listener'
{ &Listener::staticMetaObject, qt_meta_stringdata_PhLeap.data,
~~~~~~~~~~^
moc_SampleListener.cpp:111:22: error: no member named 'qt_metacast' in 'Leap::Listener'
return Listener::qt_metacast(_clname);
~~~~~~~~~~^
moc_SampleListener.cpp:116:21: error: no member named 'qt_metacall' in 'Leap::Listener'
_id = Listener::qt_metacall(_c, _id, _a);
~~~~~~~~~~^
所以我問題:
- 我想發出錯誤的信號w唉?
- 我是否正確的做法,但與假人錯誤?
我應該有提到,它已經在課堂上,我會編輯自己的帖子 –
我已經編輯我的職務太:) – Trompa
那是一回事;) –