Hi,
The purpose of the @pyqtSignature decorator is to help the uic-generated
file's setupUi() method's connectSlotsByName() call be able to correctly
connect methods that are reimplementations of slots that have two or
more overloads.
For example the QPushButton.clicked() signal has one overload that has
no argument and another that has a bool (to indicate its toggle state).
So whereas in PyQt I'd write:
@pyqtSignature("")
def on_button_clicked(self):
# handle the non-toggle case
@pyqtSignature("bool")
def on_button_clicked(self):
# handle the toggle case separately
how would I do it in PySide?
(I know my example doesn't make sense; it is just to illustrate the
question.)
Thanks!
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Programming in Python 3" - ISBN 0321680561
http://www.qtrac.eu/py3book.html
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside