-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.1
Open the link and see the code snippet .
http://qt-project.org/doc/qt-5.1/qtcore/qthread.html
class Worker : public QObject { Q_OBJECT QThread workerThread; public slots: void doWork(const QString ¶meter) { // ... emit resultReady(result); } signals: void resultReady(const QString &result); }; class Controller : public QObject { Q_OBJECT QThread workerThread; public:
The Worker class should not be having the object,
QThread workerThread;
if it was for a purpose, say incase controller forgot to send a workerThread object when movetoThread(), then that should be shown in the example snippet.