[Qt-interest] QStackedWidget, ownership and removal
Bruce Cran
bruce.cran at iongeo.com
Mon May 24 11:37:13 CEST 2010
Hi,
I'm slightly confused by the QStackedWidget documentation. addWidget
apparently transfers ownership of the widget to the QStackedWidget, and
removeWidget retains that ownership. So that appears to suggest that
the application can't delete the object, and the QStackedWidget will
only hide it, not delete it. Does the application actually take
ownership back when removeWidget is called and that when delete'd it
will be removed entirely from the QStackedWidget?
--
Bruce Cran
More information about the Qt-interest-old
mailing list