[PyKDE] SIGNAL-to-SIGNAL connection seems broken
Giovanni Bajo
rasky at develer.com
Wed Jan 24 23:43:14 GMT 2007
Hi Phil,
==============================================
#!/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)
==============================================
This fails for me with PyQt 4.1.1 and SIP-snapshot-20061220 (the slot is
invoked only once). I didn't test with newer SIP snapshots though.
--
Giovanni Bajo
More information about the PyQt
mailing list