By reading this, two questions came up:
1. It says
it is sometimes necessary to explicitly mark a Python method as being a Qt slot
While I always use the @pyqtSlot decorator because it says:
Connecting a signal to a decorated Python method also has the advantage of reducing the amount of memory used and is slightly faster
I ask myself: in which specific cases is it necessary? and: Are there any advantages of not using the @pyqtSlot decorator?
2. The result keyword argument, what is its purpose?
@pyqtSlot(int, result=int)
def foo(self, arg1):
""" C++: int foo(int) """
It looks like the return value's type, but AFAIK you cannot retrieve return values when emitting signals.
Any ideas about that?