[PyQt] PyQt. How to shoot yourself in the foot.

Andrei Kopats hlamer at tut.by
Sun Aug 24 13:06:32 BST 2014


Hi, Yuya

Thank you for the hint.
I tried to use pyqtSlot on PyQt and Slot on PySide and got the same results.
Maybe I missed something.
https://github.com/hlamer/pyqt-memory-mgmt/blob/master/5-disconnect.py may
be used to reproduce the exceptions and crashes.

Andrei


On Sun, Aug 24, 2014 at 4:32 AM, Yuya Nishihara <yuya at tcha.org> wrote:

> On Sat, 23 Aug 2014 22:40:51 +0300, Andrei Kopats wrote:
> > I just published an article about memory management in PyQt. I think it
> > could be interesting for somebody in this list.
> > http://enki-editor.org/2014/08/23/Pyqt_mem_mgmt.html
> > I'll be thankful for comments and corrections.
>
> IIRC, better solution for "problems connected to C++ object deletion" is
> to use @pyqtSlot() decorator.  Connections to real slots are managed in
> C++/Qt layer and thus they are disconnected when C++ object is deleted.
>
> Regards,
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140824/3ab80912/attachment.html>


More information about the PyQt mailing list