Let\'s say I call QtConcurrent::run()
which runs a function in a worker thread, and in that function I dynamically allocate several QObjects (for later use). Since
I am not sure if Qt automatically change the thread affinity. But even if it does, the only reasonable thread to move to is the main thread. I would push them at the end of the threaded function myself.
myObject->moveToThread(QApplication::instance()->thread());
Now this only matters if the objects make use of event process like send and receive signals.