PDA

View Full Version : QFrame showing 4 different widgets



hgedek
6th September 2007, 17:26
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.?

marcel
6th September 2007, 17:29
You want to show all widgets at the same time, or separately?
All in the same time can easily be done with a central widget with a grid layout that contains the others.

Separately can be done with a QStackedWidget as the central widget.

Regards