[PyQt] Threads with PyQt. Qt's or Python's?

eliben eliben at gmail.com
Mon Jan 19 14:13:57 GMT 2009


I've seen various references to this issue before, but nothing to fully
address it as I'd expect.

Can you comment on the pros and cons of using QThread vs Python's threads
with PyQt? 

I'll begin: on the surface, Python's threads make more sense because they're
Qt independent and can be ported between apps that don't necessarily depend
on Qt (for example a web version of a GUI app). The Python thread API is
powerful enough for all uses, it seems. 

However, there are concerns. Perhaps QThreads are more efficient? Or maybe
more tightly integrated with the other parts of PyQt, so it's easier to use
them? Are there differences with regards to the GIL (are QThreads controlled
by Python's interpreter too?)

Thanks in advance
-- 
View this message in context: http://www.nabble.com/Threads-with-PyQt.-Qt%27s-or-Python%27s--tp21543755p21543755.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list