[PyQt] QWidget event == no more GC for QWidget?

Sundance sundance at ierne.eu.org
Tue Jul 22 09:56:30 BST 2008


Alexei Puzikov wrote:

> Hello,
>
> Quick question: if I uncomment the moveEvent in the code below, the
> destructor isn't called anymore.
> I suspect I'm doing something wrong or missing something - anybody can
> clear the things up?

I think this is the same issue as was discussed here a while back:
 http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg14270.html

SIP keeps a reference to virtual methods reimplemented in Python, 
meaning those methods and the objects they belong to never have a 
refcount of zero and never get garbage collected.

I believe this may be what Phil fixed just two weeks ago, though:
 http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg14395.html

-- S.


More information about the PyQt mailing list