What I meant was:
usually a call back will have a "user parameter" that allows you to "import" an object in to the call back like so:
void __stdcall myCallBack(..., unsigned int userParam){
MyClass *pMyClass = (MyClass*) userParam;
//Now you can call methods from 'MyClass', in which you can emit singnals too.
pMyClass->someSignalEmittingMethod();
}
void __stdcall myCallBack(..., unsigned int userParam){
MyClass *pMyClass = (MyClass*) userParam;
//Now you can call methods from 'MyClass', in which you can emit singnals too.
pMyClass->someSignalEmittingMethod();
}
To copy to clipboard, switch view to plain text mode
Bookmarks