Are you saying come back to the function sender? But this is going to execute all the code in the original sender, no?.
I understand that you say something more o less like this:
..............................
connect(this,SIGNAL(comeback()),this,function1());
....................
void function1(){
....
connect(timer1, SIGNAL(timeOut()),this, SLOT(readSlot()));
char *var=read();
....
}
readSlot(){
emit comeback();
}
..............................
connect(this,SIGNAL(comeback()),this,function1());
....................
void function1(){
....
connect(timer1, SIGNAL(timeOut()),this, SLOT(readSlot()));
char *var=read();
....
}
readSlot(){
emit comeback();
}
To copy to clipboard, switch view to plain text mode
Bookmarks