函数指针不能作为信号或槽的参数。 信号与槽不能有缺省参数,不能携带模板类参数。 多重继承需要QObject在第一个 // correctclassSomeClass:publicQObject,publicOtherClass{...}; 信号和槽的参数不能为函数指针 classSomeClass:publicQObject{Q_OBJECTpublicslots:voidapply(void(*apply)(List*,void*),char*);...
QObject*receiver,void**args,bool*ret);constImplFnm_impl;protected:enumOperation{Destroy,Call,Compare};public:explicitQSlotObjectBase(ImplFnfn) :m_ref(1),m_impl(fn) {}inlineintref()Q_DECL_NOTHROW{returnm_ref.ref(); }inlinevoiddestroyIfLastRef()Q_DECL_NOTHROW{if(!m_ref.deref())m...