【发布时间】:2014-12-30 02:58:37
【问题描述】:
我做过这样的事情:
//in the mainwindow's constructor
QThread *thr = new QThread;
soundWorker * work = new soundWorker;
connect(this,SIGNAL(playsound()),work,SLOT(process()));
work->moveToThread(thr);
thr->start();
我应该删除 thr 并在主窗口的解构器中工作吗?
【问题讨论】: