Hi,
I'm new to Qt and I am pretty confused by the way threading is done with Qt. If I look into the official docs, there is always the same way to create a thread. Create a subclass of QThread and implement your own run() function.
Even new books about Qt 4 are telling this. It is pretty much the same, like in Java.
Now I found this site.
http://labs.qt.nokia.com/2010/06/17/...oing-it-wrong/
and this
http://mayaposch.wordpress.com/2011/...l-explanation/
They are telling that subclassing QThread is wrong. Why do the official docs still listing the old "wrong" way?
And is it really wrong to subclass QThread? Do I have to use moveToThread()?To create your own threads, subclass QThread and reimplement run().
http://doc.trolltech.com/4.7/qthread.html
Bookmarks