[Interest] QtThread

Graham Labdon Graham.Labdon at avalonsciences.com
Tue Jan 14 09:07:55 CET 2014


Thanks everyone
I am beginning to understand

-----Original Message-----
From: interest-bounces+graham.labdon=avalonsciences.com at qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences.com at qt-project.org] On Behalf Of Sze Howe Koh
Sent: 13 January 2014 15:27
To: interest at qt-project.org
Subject: Re: [Interest] QtThread

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-qthr
> eads-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
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list