[PyKDE] PyQT Segfault on widget removal.

Phil Thompson phil at riverbankcomputing.co.uk
Wed Jun 18 14:03:01 BST 2003


On Wednesday 18 June 2003 12:37 pm, Henry Kleynhans wrote:
> Hi all,
>
> Ok, the following seems to work ok.
>
> 	# Don't do this
> 	# self.myParent.removeChild(self.myChild)
> 	self.myChild.deleteLater()
> 	del self.myChild

Strictly speaking you don't need the "del" as it doesn't affect the C++ 
instance as it isn't "owned" by Python.

Phil




More information about the PyQt mailing list