[Qt-interest] Working with threads

Sean Harmer sean.harmer at maps-technology.com
Tue Sep 1 11:27:41 CEST 2009


On Tuesday 01 Sep 2009 10:12:51 Santhosh Y wrote:
> Hi,
<snip>
> Will the above program work?
No.

> Can I create / show GUI elements in Worker Thread?
No.

> Please help me somebody by answering these simple qns.
This is all covered in the documentation. 

Widgets can only be created and controlled directly from the main thread (the 
one in which QApplication lives).

If you need widgets to react to calculations going on in a worker thread then 
use queued connections (also in the multithreading docs).

Happy reading.

Sean



More information about the Qt-interest-old mailing list