Details
Description
A wrapper returned by parentWidget() raises a RuntimeException as if it were destroyed the second time it is accessed. See the attached script – when it is run and the menu on the combo box is displayed, the BadGetWindow function will be called and raise the exception:
Traceback (most recent call last):
File "\src\tmp\combotest.py", line 34, in onFocusChange
win = BadGetWindow(new)
File "\src\tmp\combotest.py", line 27, in BadGetWindow
w = w.parentWidget()
RuntimeError: Internal C++ object (PySide.QtGui.QWidget) already deleted.
It works as expected if the GetWindow function is called instead of BadGetWindow.
Bug is in pyside 1.1 and github HEAD
Attachments
Issue Links
- relates to
-
PYSIDE-1235 wrapped object incorrectly invalidated
- Reported