[PyQt] setText from threading

Andreas Pakulat apaku at gmx.de
Wed Feb 20 18:38:46 GMT 2008


On 20.02.08 14:26:37, Reinaldo de Carvalho wrote:
> PyQt3 3.16 (Debian etch), my program use Qt3, i cant update to PyQt4 now.

You can't change Qt gui components from a thread other than the gui
thread. You have to implement some notification mechanism between your
thread and gui components. A common pattern is to send events via
QApplication::postEvent.

Andreas

-- 
Bank error in your favor.  Collect $200.


More information about the PyQt mailing list