Crash was due to sub-layouts being included in the layout's items being iterated and sub-layouts don't contain a singular widget. Sub-layouts are now removed, cleared, and deleted. Widgets removed from the layout are deleted as before.
widget.deleteLater() will remove the parent relationship automatically so widget.setParent(None) is unnecessary.
Crash was due to sub-layouts being included in the layout's items being iterated and sub-layouts don't contain a singular widget. Sub-layouts are now removed, cleared, and deleted. Widgets removed from the layout are deleted as before.
widget.deleteLater()
will remove the parent relationship automatically sowidget.setParent(None)
is unnecessary.Fixes Irrational-Encoding-Wizardry/vs-preview#63