static void emitMsg( unsigned long user_value,char * filename)
{
myclass* pthis = (myclass*)user_value; // get this address
pthis->emit storescpProgressInfo(filename) ;
}
static void emitMsg( unsigned long user_value,char * filename)
{
myclass* pthis = (myclass*)user_value; // get this address
pthis->emit storescpProgressInfo(filename) ;
}
To copy to clipboard, switch view to plain text mode
This makes NO SENSE in the context you made it!
Such call back is good, when you have the need to allow some external code to execute code it knows nothing about.
Then, such code will offer a call back signature that it knows, in which you can wrap your code for it to execute.
But in your case you only emit a signal, which means the other code is in the context of your class, which means it must have a pointer to your class, otherwise the signal will have no effect.
If you have pointer to your class, you don't need the call back!
What wrong is, that you are not listening to what we are saying to you, and you are not explainig what it is you are trying to do.
We can't help you if you don't supply us with details about your problem.
We try to help, but you need to help us help you.
Bookmarks