Qt-interest Archive, May 2007
Re: Use QThread in qt-3.1
Message 1 in thread
According to the documentation gui elements can only be created and
modified in main thread. If you want some other threads to change gui
use QCustomEvent to define ur own events for gui.
Please read this:
http://doc.trolltech.com/3.1/qcustomevent.html
http://doc.trolltech.com/3.1/threads.html
Please take a look at "Thread-safe Event Posting"
On Apr 11, 2007, at 4:53 PM, Martin Irman wrote:
> niranjank@xxxxxxxxxxxx wrote:
>> class GuiThread:public QThread
>
> It appears you want to use this new thread class for GUI things. Be
> careful with that, in Qt most GUI elements can be accessed from
> only from one thread - the thread that runs the event loop.
>
> Martin.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]