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

Giovanni Bajo rasky at develer.com
Tue Jul 22 12:08:09 BST 2008


On 7/22/2008 10:56 AM, Sundance wrote:
> 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

Yes it's the same bug and yes it's been fixed in latest snapshots.
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


More information about the PyQt mailing list