I have an ActiveX control in a QAxWidget class and I am trying to connect an Activex Event to a Slot in python
void MoveComplete (int ID) [signal]
The documentation says
QObject::connect(object, SIGNAL(MoveComplete(int)), receiver, SLOT(someSlot(int)));
But when I try run it, I get :
NameError: global name 'MoveComplete' is not defined.
I've also tried running it like this
self.connect(self, QtCore.SIGNAL('MoveComplete(int)'), self, QtCore.SLOT(self.test2()))
But it gets called at the beginning of a function which performs a Movement and not after it has been completed.
How do I connect a slot to this signal?