[PyQt] why do closeEvent and destroyed slot not get called on accepting PyQt4 QDialog?
ruidc at yahoo.com
Fri Apr 8 09:40:13 BST 2011
that was exactly the penny drop I was missing!
1. Don't hook handler for destroyed signal onto the object being destroyed.
(seems obvious in retrospect)
2. QDialog.accept() does not fire closeEvent, even though it does get
destroyed - bug or documentation is misleading IMHO
3. The different syntax for hooking up to the signal - much simpler and more
Now I can get rid of the sip.isdeleted(obj) workaround in my actual code,
View this message in context: http://old.nabble.com/why-do-closeEvent-and-destroyed-slot-not-get-called-on-accepting-PyQt4-QDialog--tp31336229p31349767.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt