[PyQt] setText from threading

Phil Thompson phil at riverbankcomputing.com
Thu Feb 21 14:41:48 GMT 2008


On Thursday 21 February 2008, Rafał Zawadzki wrote:
> Thursday 21 February 2008 14:35:50 Phil Thompson napisał(a):
> > On Thursday 21 February 2008, Reinaldo de Carvalho wrote:
> > > "threading" dont have postEvent-like then I must use Qthread?
> >
> > You could use the standard Python Queue and in the main thread convert
> > them to events and post them locally - but using QThread is easier.
>
> I am begginer in PyQT - is there any tutorial with QThreads?
>
> I want to write async application which in one thread feed some data and
> update some QObjects...

Mark's book has a chapter dedicated to threading...

http://www.qtrac.eu/pyqtbook.html

...or there is the Qt docs...

http://doc.trolltech.com/4.3/threads.html

Phil



More information about the PyQt mailing list