[Qt-interest] Thread calling Thread and Signal/Slots

Sean Harmer sean.harmer at maps-technology.com
Mon Mar 30 17:56:40 CEST 2009


Hi,

On Monday 30 March 2009 16:49:50 Matthias Pospiech wrote:
> My Gui is calling a Thread which itself is calling another Thread.
>
> The Threads should communicate with Signal/Slots. Do I have to call
> exec() in that case and if, where has that to be placed?
If your threads need to respond in slots, then each thread will need to call 
exec() in its run() function. This is because when using signals/slots across 
thread boundaries you must have the event loop running in the receiving 
thread.

Sean




More information about the Qt-interest-old mailing list