[PyQt] Basic thread question

Phil phil_lor at bigpond.com
Fri Sep 29 10:24:05 BST 2017


On 29/09/17 19:11, Florian Bruhin wrote:
> Hi,
> 
> 
> You can't do any operations on GUI elements from a secondary thread.

Thank you for you reply Florian.

Do you think that you could provide me with a simple example?

Say I have a thread class like the one shown in my previous message, how 
do I access a MainWindow widget?

> 
>> I know that this is not totally correct, but just say that I wanted to step
>> the dial point along at a one second rate. How should I proceed?
> 
> The proper way to do this would be using a QTimer.

Are saying that QTimer is non blocking?

-- 
Regards,
Phil


More information about the PyQt mailing list