Signal
Connect and emit events.
| Type | Class |
This class implements the signal/slot pattern, which is used as event type.
Methods
connect(slot)
Connect slot to the signal, and return an ID that can be used to
disconnect it.
The signature of slot must match the event's type.
Parameters
functionslot
Return
integerdisconnect(id)
Disconnect the id from the signal.
Parameters
integerid
disconnectall()
Disconnect all slots in the signal.
isempty()
Return true if there is no slot connected to the signal.
Return
boolean