void QObject::moveToThread_helper() { QEvent event(QEvent::ThreadChange); QCoreApplication::sendEvent(this, &event); for (int k = 0; k < m_children.size(); ++k) { QObject *child = m_children.at(k); child->moveToThread_helper(); } }