Signals can be defined using the QtCore.Signal() class. Python types and C types can be passed as parameters to it. If you need to overload it just pass the types as tuples or lists.
In addition to that, it can receive also a named argument name that defines the signal name. If nothing is passed as name then the new signal will have the same name as the variable that it is being assigned to.
The Examples section below has a collection of examples on the use of QtCore.Signal().
Note: Signals should be defined only within classes inheriting from QObject. This way the signal information is added to the class QMetaObject structure.
Argument "name" in QtCore.Signal() will change the signal name.
But the signal name remains the same as the variable name.
|For Gerrit Dashboard: PYSIDE-1192|
|286998,3||libpyside: Set default signal name only if previously assigned||5.14||pyside/pyside-setup||Status: MERGED||+2||0|