auto thread = new QThread;myObj = new MyObject();myObj->moveToThread(thread);connect(myObj,SIGNAL(finished()),thread,SLOT(quit()));connect(thread,SIGNAL(finished()),thread,SLOT(deleteLater()));connect(thread,SIGNAL(started()),myObj,SLOT(start()));thread->start();
connect(myObj,SIGNAL(operationStatus(QString)), ui->StatusLabel, SLOT(setText(QString)));