2013-07-04 99 views
0

我正在LeapQtMac 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); 
      ~~~~~~~~~~^ 

所以我問題:

  1. 我想發出錯誤的信號w唉?
  2. 我是否正確的做法,但與假人錯誤?

回答