how he solved it isn't really applicable in my case
and
and the overhead of creating an object, setting up the signals and connecting the to the GUI threads slots is an excessive amount of overhead I feel
Have nothing in common.
Here is the code:
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
No allocation, no setting up connections, no nothing, just emiting a signal.
You set the connection there where the emitting and receiving object are visible, and you only need to do it once.
But then again, I don't really know what it is you are trying to do (appart from emiting a signal in a callback.).
Bookmarks