[Qt-interest] Working with threads
Stephen Jackson
spjackson42 at gmail.com
Tue Sep 1 11:24:28 CEST 2009
On Tue, Sep 1, 2009 at 10:12 AM, Santhosh Y wrote:
>
> Will the above program work?
> Can I create / show GUI elements in Worker Thread?
> Please help me somebody by answering these simple qns.
>
The documentation is very clear. http://doc.trolltech.com/4.5/threads.html
"In GUI applications, the main thread is also called the GUI thread
because it's the only thread that is allowed to perform GUI-related
operations."
"Although QObject is reentrant, the GUI classes, notably QWidget and
all its subclasses, are not reentrant. They can only be used from the
main thread."
Alternatively, read a million threads on this list that have asked the
same question.
--
Regards,
Stephen Jackson
More information about the Qt-interest-old
mailing list