pyqtSignal ( types ] ] ] ) ¶Ĭreate one or more overloaded unbound signals as a class attribute. New signalsĬan be defined as class attributes using the pyqtSignal()įactory. PyQt5 automatically defines signals for all Qt's built-in signals. System while ensuring that its reference count is properly maintained. Wrapped in a special C++ type that allows it to be passed around Qt's meta-type If an argument doesn't have a corresponding C++ type then it is When a signal is emitted then any arguments are converted to C++ types if If a signal is overloaded then it will have a default that will be used if no Used instead of the non-normalised const QVariant &. The name of aĬ++ type is automatically normalised so that, for example, QVariant can be
A type is eitherĪ Python type object or a string that is the name of a C++ type. A signal may be indexed with a signature in order to
a signal with a particular name may support That is the signature of the signal that would be returned by Qt's SIGNAL()Ī signal may be overloaded, ie. This is the same mechanism that Python itself uses to create boundĪ bound signal has connect(), disconnect() and emit() methods that Is referenced as an attribute of an instance of the class then PyQt5Īutomatically binds the instance to the signal in order to create a bound A signal (specifically an unbound signal) is a class attribute.