Second try to fix the warning "QObject: Cannot create children for a parent that is in a different thread"