Hi all,

I have two related questions to ask:
1) Is it admitted to set the flag Qt::WA_DeleteOnClose for a QWidget, beyond that for the MDI subwindow that contains it?

If the answer to the 1 is "Yes", the second question:
2) What does a QWidget do right after accepting the closeEvent and before its desctruction?
Because right now this function:
Qt Code:
  1. void frmarticle::closeEvent(QCloseEvent *event)
  2. {
  3. if(!maybeSave()) // check for modifies apported
  4. {
  5. event->ignore(); //modifies apported stop the closement
  6. return;
  7. }
  8.  
  9. viewport->close(Article); //nullifies pointers
  10. event->accept(); //accepts close event, it is supposed to destroy this widget now, is it?
  11. }
  12. // now quits the closeEvent and the program raise exception, before calling the destructor
To copy to clipboard, switch view to plain text mode 
So, if I would know what it does after close event and before destructor, I could debug it; if you have any other suggestion don't be shy, I accept everything.