lundi 3 novembre 2014

How to release memory of Qthread object?


Vote count:

0




I have done something like this: //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();


Shall I delete thr and work at the deconstructor of mainwindow?



asked 57 secs ago







How to release memory of Qthread object?

Aucun commentaire:

Enregistrer un commentaire