[PyQt] Fwd: creating QWidgets outside the GUI thread

KONTRA, Gergely pihentagy at gmail.com
Fri Dec 17 12:04:16 GMT 2010


---------- Forwarded message ----------
From: KONTRA, Gergely <pihentagy at gmail.com>
Date: Fri, Dec 17, 2010 at 13:03
Subject: Re: [PyQt] creating QWidgets outside the GUI thread
To: erik.janssens at conceptive.be


AFAIK you shouldn't create or manipulate QWidgets just from the main
thread. If you'd like to initiate some GUI change from a worker
thread, you should use the signals & slots mechanism to delegate
widget creation to the main thread.
+-[ Gergely Kontra <pihentagy at gmail.com> ]------------------+
|                                                           |
| Mobile:(+36 20)356 9656                                   |
|                                                           |
+- "Olyan lángész vagyok, hogy poroltóval kellene járnom!" -+



On Fri, Dec 17, 2010 at 10:29, Erik Janssens
<Erik.Janssens at conceptive.be> wrote:
> Hi,
>
> has anybody experience with creating QWidgets outside the GUI
> thread ?
>
> I'd like to know if it's possible to construct QWidgets in some kind
> of worker thread, and when they are needed, reparent them and
> move them to the GUI thread before displaying them.
>
> Regards,
>
> Erik
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


More information about the PyQt mailing list