pyqt eliminar widget

widget.setParent(None)
Andreas