[Qt-interest] QStackedWidget, ownership and removal
Denis Akhmetzyanov
dakhmetzyanov at smartlabs.tv
Mon May 24 11:52:40 CEST 2010
Hi,
This topic has been discussed in this list:
http://lists.trolltech.com/pipermail/qt-interest/2010-March/020899.html
Briefly: QStackedWidget documentation is obfuscated in this part.
Really QStackedWidget::removeWidget() return ownership of the widget
2010/5/24 Bruce Cran <bruce.cran at iongeo.com>
> 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 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Best regards,
Denis Akhmetzyanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100524/940eb1be/attachment.html
More information about the Qt-interest-old
mailing list