[Qt-interest] Load QWidget instances in seperate QThread

Andreas Pakulat apaku at gmx.de
Sun Dec 6 21:43:52 CET 2009


On 06.12.09 20:11:21, Dominic Stalder wrote:
> Hi there
> 
> I tried to load a hugh 3D (Qt with OSG) instance in a seperate QThread, 
> so the user doesn't have to wait that long time.
> 
> While running my application it says, that creating the instance is not 
> possible in another thread than the GUI thread.
> 
> Is there another way to do this?

No, you can't do GUI operations in a background thread. This is of
course only limited to Qt's own widgets (or at least mostly so). So if
you can do the 3D-painting in a background thread and then just copy
over the final image to the foreground thread that might keep your gui
responsive.

Andreas
 
-- 
Ships are safe in harbor, but they were never meant to stay there.



More information about the Qt-interest-old mailing list