-
QStackedWidget issue
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:
-
Re: QStackedWidget issue
Widgets take ownership of widgets that are added to them. A widget can't be in two places at once.