[PyQt] QThread Behaviour

David Klasinc bigwhale at lubica.net
Tue Jun 17 17:04:22 BST 2008


Andreas Pakulat wrote:
> On 17.06.08 16:23:01, David Klasinc wrote:
>> Greetings,
>>
>>  After QThread.run() was called, shouldn't calling thread continue with  
>> its execution and not wait for the thread to finish? Shortened example  
>> follows
> 
> No, because you don't spawn a new thread in which run() is executed, but
> instead you execute run() in your current thread, thus blocking further
> execution. I suggest to have a second look at the API docs for QThread,
> what you want to call is QThread.start().

*runs away and hides in the dark* :)

I had the docs open all the time and it wasn't the first time I used 
QThreads. I need sleep... :))


Thanks,
David


More information about the PyQt mailing list