That is clear. Ok, I misunderstood one thing:
Qt::WA_DeleteOnClose
Makes Qt delete this widget when the widget has accepted the close event (see QWidget::closeEvent()).
Closing a widget is not equal to destroying it, but you can force Qt to destroy a widget on close.
Let's say I set the flag on my widget. So when is it will be closed it will be deleted and the parent will not to try to delete it again ???
Bookmarks