Hi,

is it okay to let a QThread delete itself when it is finished by calling deleteLater()?

Qt Code:
  1. MyThread::MyThread()
  2. : QThread() {
  3. QObject::connect(this,
  4. SIGNAL(finished()),
  5. this,
  6. SLOT(deleteLater()));
  7. }
To copy to clipboard, switch view to plain text mode 

It seems to work but could there be any side effects?

Thanks

Lodorot