[PyQt] Regressions on destruction of objects?
rasky at develer.com
Wed Oct 28 18:35:44 GMT 2009
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:
from PyQt4.Qt import *
a = QObject(None)
called = 
QObject.connect(a, SIGNAL("destroyed()"), a, SIGNAL("QUIT()"))
QObject.connect(a, SIGNAL("destroyed()"), myslot)
QObject.connect(a, SIGNAL("QUIT()"), myslot)
assert len(called) == 2, len(called)
I would say this should work, right?
More information about the PyQt