Lodorot
23rd February 2010, 18:39
Hi,
is it okay to let a QThread delete itself when it is finished by calling deleteLater()?
MyThread::MyThread()
: QThread() {
QObject::connect(this,
SIGNAL(finished()),
this,
SLOT(deleteLater()));
}
It seems to work but could there be any side effects?
Thanks
Lodorot
is it okay to let a QThread delete itself when it is finished by calling deleteLater()?
MyThread::MyThread()
: QThread() {
QObject::connect(this,
SIGNAL(finished()),
this,
SLOT(deleteLater()));
}
It seems to work but could there be any side effects?
Thanks
Lodorot