[PyQt] QThread Behaviour

Andreas Pakulat apaku at gmx.de
Tue Jun 17 15:51:31 BST 2008


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().

Andreas

-- 
Don't get to bragging.


More information about the PyQt mailing list