title: When to use deleteLater
body: <p>Assuming I have the following snippet, is it safe to call deleteLater in qto's destructor for other QT objects it might administer?</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
  
      MyQTObject qto;
      qto.show();
      return a.exec();
  }
  </code></pre>
  
  <p>Because I've analyzed similar code like this with a leak detector and all the objects for which deleteLater was called, weren't deallocated correctly unless I replaced the call with a normal delete.
  If I've understood this correctly, deleteLater only registers a deletion event in the QT message queue. Can this be the problem that qto's destructor is called at the end of main's scope whereas the QT message loop already ends with the return from a.exec? Thus the deletion event will never be processed, in fact not even pushed into a message queue since there is none?</p>