sterling
25th December 2013, 04:44
When accepting a closeEvent on a parentless window doing a destroy( true, true ) doesn't call the window's destructor.
This can be fixed by explicitly calling the window's destructor in the closeEvent.
Do I need to/should I call the destroy method in the destructor?
If the window has a parent, and I force the window to close by calling the destructor, will the parent be notified of the close?
If not, what do I need to to do to make sure the window is properly removed from the parent's child list?
What documentation addresses this issue?
This can be fixed by explicitly calling the window's destructor in the closeEvent.
Do I need to/should I call the destroy method in the destructor?
If the window has a parent, and I force the window to close by calling the destructor, will the parent be notified of the close?
If not, what do I need to to do to make sure the window is properly removed from the parent's child list?
What documentation addresses this issue?