Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.2
-
None
-
2023b9e76baf8d8a3b1ea59748624e16f3297ac3
Description
The documentation of QStackedWidget::removeWidget explains that:
"Ownership of widget reverts to the application." ;however, QStackedWidget actually continues to retain ownership of widget even after removeWidget() is called.
Upon adding a widget to a QStackedWidget, the parent of the added widget is set to the QStackedWidget. Once the widget is removed from the stacked widget, the widget continues to be parented to the QStackedWidget.
This contradicts the bug fix in the documentation for bug 10934.
Attachments
Issue Links
- is duplicated by
-
QTBUG-45608 QStackedWidget::removeWidget does not revert ownership
- Closed
- resulted from
-
QTBUG-10934 QStackedWidget::removeWidget documentation is confusing
- Closed
For Gerrit Dashboard: QTBUG-44891 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
110995,2 | Doc: clarify ownership after QStackedWidget::removeWidget | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |