On 13 January 2014 18:26, Etienne Sandré-Chardonnal <etienne.san...@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 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest