[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Regressions on destruction of objects?
From:       Giovanni Bajo <rasky () develer ! com>
Date:       2009-10-28 18:35:44
Message-ID: 1256754944.12600.7.camel () lilax
[Download RAW message or body]

Hi Phil,

I'm testing PyQt 4.6.1 and SIP 4.9.1 over my small regression testsuite
(it contains testcases for bugs that I have reported to you over the
years and that you have fixed).

There are 4 testcases failing with the new SIP/PyQt pair, but they all
seem related to the same issue. Try this one:

=====================================================================
#!/usr/bin/env python
from PyQt4.Qt import *

a = QObject(None)

called = []
def myslot():
    called.append(True)

QObject.connect(a, SIGNAL("destroyed()"), a, SIGNAL("QUIT()"))
QObject.connect(a, SIGNAL("destroyed()"), myslot)
QObject.connect(a, SIGNAL("QUIT()"), myslot)

del a
assert len(called) == 2, len(called)
=====================================================================

I would say this should work, right?
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic