[PyQt] pyqtSlot decorator
Florian Bruhin
me at the-compiler.org
Thu Sep 24 14:16:07 BST 2015
* Jonathan Mizrahi <mizrahi.jonathan at gmail.com> [2015-09-24 09:10:29 -0400]:
> When, exactly, is it necessary to use the @pyqtSlot decorator? Also, if a
> signal calls a slot which has previously been garbage-collected, will that
> cause problems in the program? My own simple tests seemed to show that
> deleting slots, even pure Python slots which are not decorated, did not
> cause a problem. But, are there cases where it does?
I can't exactly pinpoint it, but I had various funny corner cases
(especially with PyQt versions < 5.4 or so) with segfaults,
RuntimeErrors, etc. which went away when I decorated the slots - so I
now always decorate them.
Florian
--
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150924/a0f0accb/attachment.sig>
More information about the PyQt
mailing list