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:
{
if(!maybeSave()) // check for modifies apported
{
event->ignore(); //modifies apported stop the closement
return;
}
viewport->close(Article); //nullifies pointers
event->accept(); //accepts close event, it is supposed to destroy this widget now, is it?
}
// now quits the closeEvent and the program raise exception, before calling the destructor
void frmarticle::closeEvent(QCloseEvent *event)
{
if(!maybeSave()) // check for modifies apported
{
event->ignore(); //modifies apported stop the closement
return;
}
viewport->close(Article); //nullifies pointers
event->accept(); //accepts close event, it is supposed to destroy this widget now, is it?
}
// 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.
Bookmarks