Deletion of parent widget will delete the child widget too.(Correct me if I am wrong).

now what will happen if we delete child explicitly after parent deletion.

something like --

delete *parent_widget;
delete *child_widget;

-Mahesh