[Qt-interest] Create a new GUI Thread

David Johnson david at usermode.org
Mon Mar 2 23:56:51 CET 2009


On Monday 02 March 2009 12:05:06 pm Luke Campagnola wrote:
> Can anybody tell me if this issue is being considered by the Qt developers?
> Is it even possible to fix at all?

The GUI parts of the application need to be in the same thread. It's a 
limitation on both X11 and Mac. There may be ways around this under Windows, 
but it is not supported and may break with new Qt releases.

But since QThreads can easily communicate with each other, there is very 
rarely a need for GUI elements to be in different threads. Have a worker 
thread do the heavy lifting, then communicate its results to the main GUI 
thread.

-- 
David Johnson



More information about the Qt-interest-old mailing list