[PyQt] update qt labels from another thread

Giovanni Bajo rasky at develer.com
Wed Apr 11 13:21:21 BST 2007


On 4/11/2007 2:13 PM, Pradnyesh Sawant wrote:

> How do i achieve updates of form labels? In a previous mail on this
> list itself, i read something about signals/slots/callbacks. I don't
> see how signals/slots will be helpful here (however, plz note that i
> am relatively new to PyQt4 and this might be incomplete knowledge on
> my part). As far as callbacks are concerned, i don't know what they
> mean. Any pointers/tutorials for me would be greatly helpful...

If you use QThread, you can use delayed connections between threads: 
read the documentation:

http://doc.trolltech.com/4.2/threads.html#signals-and-slots-across-threads
-- 
Giovanni Bajo



More information about the PyQt mailing list