Hi,

I've got an issue where I'm trying to use deleteLater() to delete a thread after it has finished running. Therefore I have:

Qt Code:
  1. void MyThread::run()
  2. {
  3. //MyThread Work done here
  4.  
  5. deleteLater();
  6. }
To copy to clipboard, switch view to plain text mode 
However, since MyThread has no parent, the deletion of the thread seems to only occur when the applciation exits. Does anyone know how this can be changed?

David