Consider the following snippet code:
Line 1: this is referred to QWidget, so p_Button is child of QWidget in my example: when QWidget dies (goes out the scope??) his destructor deletes p_Button from the heap and calls the destructor of p_Button.
Line 2: Same as Line 1, but does the destructor of QWidget delete myButton since its child is also myButton?
Please correct me if I stated something wrong and reply to my questions.
