java.lang.Object
io.qt.core.QMetaObject.AbstractSignal
io.qt.core.QMetaObject.AbstractPrivateSignal0
- All Implemented Interfaces:
QMetaObject.Signal
- Direct Known Subclasses:
QInstanceMemberSignals.PrivateSignal0
,QMetaObject.AbstractPublicSignal0
,QObject.PrivateSignal0
,QStaticMemberSignals.PrivateSignal0
- Enclosing class:
QMetaObject
Supertype for parameterless signals.
-
Method Summary
Modifier and TypeMethodDescriptionfinal <Receiver> QMetaObject.Connection
connect
(Receiver receiver, QMetaObject.Slot1<Receiver> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.final QMetaObject.Connection
connect
(QMetaObject.Connectable0 signal, Qt.ConnectionType ... connectionType) Initializes a connection to the signal.final QMetaObject.Connection
connect
(QMetaObject.Slot0 slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final <Receiver> boolean
disconnect
(Receiver receiver, QMetaObject.Slot1<Receiver> slot) Removes the connection to the given slot of receiver.final boolean
disconnect
(QMetaObject.Connectable0 signal) Removes the connection to the given signal.final boolean
disconnect
(QMetaObject.Slot0 slot) Removes the connection to the given slot.Methods inherited from class io.qt.core.QMetaObject.AbstractSignal
connect, disconnect, disconnect, disconnect, disconnect
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.qt.core.QMetaObject.Signal
argumentTypes, containingObject, fullName, methodIndex, name
-
Method Details
-
connect
public final QMetaObject.Connection connect(QMetaObject.Slot0 slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.- Parameters:
slot
- the slot to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given slot.- Parameters:
slot
- the slot to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-
connect
public final <Receiver> QMetaObject.Connection connect(Receiver receiver, QMetaObject.Slot1<Receiver> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.- Type Parameters:
Receiver
- The type of the receiver- Parameters:
receiver
- the target receiverslot
- the slot to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given slot of receiver.- Type Parameters:
Receiver
- The type of the receiver- Parameters:
receiver
- the target receiverslot
- the slot to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-
connect
public final QMetaObject.Connection connect(QMetaObject.Connectable0 signal, Qt.ConnectionType ... connectionType) Initializes a connection to the signal.- Parameters:
signal
- the signal to be connectedconnectionType
- type of connection- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.
-
disconnect
Removes the connection to the given signal.- Parameters:
signal
- the signal to be disconnected- Returns:
true
if successfully disconnected, orfalse
otherwise.
-