Qt 6.11 is out! See what's new in the release
blog
QObject::moveToThread: Cannot move objects with a parent
General and Desktop
8
Posts
4
Posters
19.0k
Views
1
Watching
-
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.