[PySide] QObject.destroyed() is not emitted
Alexey Vihorev
vihorev at gmail.com
Mon Nov 26 19:54:28 CET 2012
Hi!
Got problems with the following code:
from PySide import QtCore
def onDestroy(*args):
print('destroyed')
obj = QtCore.QObject()
obj.destroyed.connect(onDestroy)
The onDestroy() method is not called, unless del(obj) is called explicitly.
In PyQt4 it is called without del(obj). Is that a bug or intended behavior?
I'm using Qt 4.8.2, PySide 1.1.2 32bit, Windows 7-64
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20121126/4be97630/attachment.html>
More information about the PySide
mailing list