PDA

View Full Version : QStackedWidget issue



liran ritkop
10th April 2011, 09:55
Hi!
I have a QStackedWidget which contains some widgets (i guess it contains pointers to these widgets).
I am trying to use other QStackedWidget which contains some of these widgets (pointers to these widgets).
When i insert these specific widgets to the second one, they disappear from the first one. How can it be? Doesn't it only a pointer to the widget itself?:confused:

SixDegrees
10th April 2011, 11:30
Widgets take ownership of widgets that are added to them. A widget can't be in two places at once.