[Interest] QtThread

Sze Howe Koh szehowe.koh at gmail.com
Mon Jan 13 16:26:31 CET 2014


On 13 January 2014 18:26, Etienne Sandré-Chardonnal
<etienne.sandre at m4x.org> wrote:
> Hi,
>
> As Andrey pointed out, there is not a single way. But if you want to use a
> QThread for running QObjects with its event loop, the most simple way is not
> to subclass, and moveToThread.
>
> This is well explained here:
> http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/
> http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/

To balance things out, here's a direct response to Etienne's first
link: http://woboq.com/blog/qthread-you-were-not-doing-so-wrong.html

The "correct" method depends on what you want to achieve. I wrote
(most of) this page to compare/contrast all the different ways to do
parallel processing in Qt, and try to help readers choose the best way
for their application:
http://qt-project.org/doc/qt-5/threads-technologies.html (suggestions
for improvements are welcome!)


Regards,
Sze-Howe



More information about the Interest mailing list