[Qt-interest] Load QWidget in background "thread"

Sean Harmer sean.harmer at maps-technology.com
Mon Jan 11 10:35:52 CET 2010


Hi,

Dominic Stalder wrote:
> For precise understandig: I can't pass the initialization of the hole 
> QWidget to a seperate thread, right? I can "extract" the OSG part and 
> load this in a thread.

Yes that's the idea. You could even have yoru widget display soem kind 
of "loading" or "busy" information/animation whilst the worker thread is 
loading your actual scenegraph.

As long as you don't do anything (directly) with a QWidget subclass or 
QPixmap in the worker thread you shoudl be OK. See the Qt threading 
documentation for a complete list of things to avoid.

Cheers,

Sean



More information about the Qt-interest-old mailing list