我不能声明具有SLOT函数指针的*Q_OBJECT*,因为 MOC 无法编译它。你能给我正确的实施吗?
public slots:
void (*refMoveMethod) (Compound_object& object);
...
QObject::connect(someTimer, SIGNAL(timout()), this, SLOT(refMoveMethos));
我不能声明具有SLOT函数指针的*Q_OBJECT*,因为 MOC 无法编译它。你能给我正确的实施吗?
public slots:
void (*refMoveMethod) (Compound_object& object);
...
QObject::connect(someTimer, SIGNAL(timout()), this, SLOT(refMoveMethos));