Details
Description
According to the Qt documentation, QTabWidget::clear()
Removes all the pages, but does not delete them.
However, in PySide the pages and their contents are deleted.
The test case is attached. Currently it produces this traceback:
Traceback (most recent call last): File "./test.py", line 27, in <module> window.toggle() File "./test.py", line 21, in toggle self.getSplitter() File "./test.py", line 16, in getSplitter splitter.addWidget(self.editBox) RuntimeError: Internal C++ object (PySide.QtGui.QTextEdit) already deleted.
With PyQt4 (and PyQt5), this works correctly.
Attachments
For Gerrit Dashboard: PYSIDE-213 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
218046,7 | Fix QTabWidget.clear to avoid double obj removal | 5.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |