<div dir="ltr">Hi, Yuya<div><br></div><div>Thank you for the hint.</div><div>I tried to use pyqtSlot on PyQt and Slot on PySide and got the same results.</div><div>Maybe I missed something. <a href="https://github.com/hlamer/pyqt-memory-mgmt/blob/master/5-disconnect.py">https://github.com/hlamer/pyqt-memory-mgmt/blob/master/5-disconnect.py</a> may be used to reproduce the exceptions and crashes.</div>
<div><br></div><div>Andrei</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 24, 2014 at 4:32 AM, Yuya Nishihara <span dir="ltr"><<a href="mailto:yuya@tcha.org" target="_blank">yuya@tcha.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, 23 Aug 2014 22:40:51 +0300, Andrei Kopats wrote:<br>
> I just published an article about memory management in PyQt. I think it<br>
> could be interesting for somebody in this list.<br>
> <a href="http://enki-editor.org/2014/08/23/Pyqt_mem_mgmt.html" target="_blank">http://enki-editor.org/2014/08/23/Pyqt_mem_mgmt.html</a><br>
> I'll be thankful for comments and corrections.<br>
<br>
</div></div>IIRC, better solution for "problems connected to C++ object deletion" is<br>
to use @pyqtSlot() decorator. Connections to real slots are managed in<br>
C++/Qt layer and thus they are disconnected when C++ object is deleted.<br>
<br>
Regards,<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></blockquote></div><br></div>