[Qt-interest] QObject::moveToThread: Widgets cannot be moved to a new thread

Arnold Krille arnold at arnoldarts.de
Thu Jul 30 18:28:58 CEST 2009


On Thursday 30 July 2009 16:49:36 alexandre.raczynski at technog wrote:
> Donal O'Connor wrote :
> > From my understanding, GUI operations can only be performed in the
> > main (GUI) thread of the application so it wouldn't make sense to move
> > QWidget to another thread?
> You are right but moving them to the main thread makes sense.

Instantiating QWidgets (and all dereived classes) outside the main-thread 
_doesnt_ make sense! It will probably lead to nasty errors and shouldn't be 
done in the first place. So there isn't actually a reason to move a widget to 
the main thread...

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/d0471646/attachment.bin 


More information about the Qt-interest-old mailing list