[PySide] Slots - to decorate or not to decorate

Frank Rueter | OHUfx frank at ohufx.com
Sun Mar 16 23:48:36 CET 2014


Hi all,

I have been under the impression that using the decorator @QtCore.Slot() 
wasn't necessarily required in PySide to be able to use 
functions/methods as slots.
However, the more I am reading up on it, the more I am getting the 
feeling that, while it may not be necessary to use the decorator, it 
does make things more efficient because of the explicit signature 
assignment.

Could somebody clarify the "best practice", when to use decorators and 
when they are not required? Or is it simply good practise to always use 
them?

Cheers,
frank



-- 
ohufxLogo 50x50 <http://www.ohufx.com> 	*vfx compositing 
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation 
and consulting <http://ohufx.com/index.php/vfx-customising>* *

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20140317/62f42500/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ohufxLogo_50x50.png
Type: image/png
Size: 2666 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20140317/62f42500/attachment.png>


More information about the PySide mailing list