[PyKDE] trouble with QLabel
Rick van Hattem
Rick.van.Hattem at fawo.nl
Mon Jan 8 07:08:08 GMT 2007
On Monday 08 January 2007 03:52, Steven James Samuel Stapleton wrote:
> RuntimeError: Underlying C/C++ object has been deleted
>
> What could cause this?
Exactly what is telling you, the object has been deleted ;)
Try saving the object before using it.
self.label = qt.QLabel() would work.
label = qt.QLabel() does not work since that's a local function, after the
function has finished it will be deleted by the garbage collector.
--
Rick van Hattem Rick.van.Hattem(at)Fawo.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070108/313a7eb7/attachment.bin
More information about the PyQt
mailing list