I crated a main widget and It has a QFrame on it.I have 4 widgets .I am trying to show these widgets on this frame.For first widget there is no matter.By using setupUi I can do.But for others I can't.There is no changing.It is still showing first widget.I think, before showing others on frame I should destroy previous widget.But I couldn't achieve this.How can destroy this relationship or setupUi mention.?