Pyqt Usuń widżet
widget.setParent(None)
Andreas
widget.setParent(None)
for i in reversed(range(layout.count())):
layout.itemAt(i).widget().setParent(None)