QObject::moveToThread: Cannot move objects with a parent
-
It's throwing sometimes. Not everytime. what could be the issue.
-
You are setting the parent somewhere, right?
-
Yes. Passing this pointer to constructor of the worker object.
-
Don't do it, then. See the "documentation":http://qt-project.org/doc/qt-5/qobject.html#moveToThread.
-
Thank you. I will be back on Sunday.
-
When you read the link that sierdzio posted, also scroll up and read the section titled "Thread Affinity".
-
Great. It's solved.
Thanks guys.
-
In that case, please edit your firstost and add [solved] to it to infom others.