PDA

View Full Version : QThread interthread communication



hunsrus
26th February 2009, 16:11
Hi!

i'm having a problem with my threaded application - actually it is rather a question... Is it possible to let threads intercommunicate? i mean, i'm having a mainthread and a QThread (in which some stuff is done). That works pretty well, but how to connect them in a way, that both threads can communicate with each other (without calling system functions)? i hope, you can help me.

best wishes,

sebastian

Sheng
26th February 2009, 16:18
in main-thread you can change parameters in qthread to control qthread activity, use signal in qthread to communicate with main-thread.

hunsrus
10th March 2009, 15:49
thank you very much,
that helped a lot :)