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
Function
slot
Return
Integer
disconnect(id)
Disconnect the id
from the signal.
Parameters
Integer
id
disconnectAll()
Disconnect all slots in the signal.
isEmpty()
Return true
if there is no slot connected to the signal.
Return
Boolean