Hi,
I have widget;
...
MyWidget my_widget = new MyWidget(parentWidget/*this*/);
...
...
MyWidget my_widget = new MyWidget(parentWidget/*this*/);
...
To copy to clipboard, switch view to plain text mode
when I delete the parent like;
delete parentWidget;
delete parentWidget;
To copy to clipboard, switch view to plain text mode
it deletes the child but it doesn't call the MyWidget's destructor right? If we want to call MyWidget's destructor, we need delete the child MyWidget explicitly like?
delete myWidget;
delete myWidget;
To copy to clipboard, switch view to plain text mode
Bookmarks