java.lang.Object
io.qt.core.QObject.MultiSignal
io.qt.widgets.QButtonGroup.MultiSignal_buttonToggled
- Enclosing class:
QButtonGroup
Wrapper class for overloaded signals:
buttonToggled(QAbstractButton * arg__1, bool arg__2)
buttonToggled(int arg__1, bool arg__2)
-
Method Summary
Modifier and TypeMethodDescriptionfinal <Receiver,
A>
QMetaObject.Connectionconnect
(Receiver receiver, QMetaObject.Slot2<Receiver, A> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.final <Receiver,
A, B>
QMetaObject.Connectionconnect
(Receiver receiver, QMetaObject.Slot3<Receiver, A, B> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot of receiver.final <A,
B> QMetaObject.Connection connect
(QMetaObject.AbstractPublicSignal2<A, B> signal, Qt.ConnectionType ... connectionType) Creates a connection from this signal to another.final <A,
B> QMetaObject.Connection connect
(QMetaObject.Connectable2<A, B> signal, Qt.ConnectionType ... connectionType) Creates a connection from this signal to another.final <A,
B> QMetaObject.Connection connect
(QMetaObject.Slot2<A, B> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final <A> QMetaObject.Connection
connect
(QMetaObject.AbstractPublicSignal1<A> signal, Qt.ConnectionType ... connectionType) Creates a connection from this signal to another.final <A> QMetaObject.Connection
connect
(QMetaObject.Slot1<A> slot, Qt.ConnectionType ... connectionType) Initializes a connection to the slot.final <Receiver,
A>
booleandisconnect
(Receiver receiver, QMetaObject.Slot2<Receiver, A> slot) Removes the connection to the given slot of receiver.final <Receiver,
A, B>
booleandisconnect
(Receiver receiver, QMetaObject.Slot3<Receiver, A, B> slot) Removes the connection to the given slot of receiver.final <A,
B> boolean disconnect
(QMetaObject.AbstractPublicSignal2<A, B> signal) Disconnects a signal from another signal if the two were previously connected by a call to connect.final <A,
B> boolean disconnect
(QMetaObject.Connectable2<A, B> signal) Disconnects a signal from another signal if the two were previously connected by a call to connect.final <A,
B> boolean disconnect
(QMetaObject.Slot2<A, B> slot) Removes the connection to the given slot.final <A> boolean
disconnect
(QMetaObject.AbstractPublicSignal1<A> signal) Disconnects a signal from another signal if the two were previously connected by a call to connect.final <A> boolean
disconnect
(QMetaObject.Slot1<A> slot) Removes the connection to the given slot.final void
emit
(int arg__1, boolean arg__2) final void
emit
(QAbstractButton arg__1, boolean arg__2) final <A,
B> QObject.Signal2<A, B> Provides an overloaded signal by parameter types.Methods inherited from class io.qt.core.QObject.MultiSignal
connect, connect, connect, connect, connect, containingObject, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectAll
-
Method Details
-
overload
@QtAllowedTypeSet({QAbstractButton.class,boolean.class}) @QtAllowedTypeSet({int.class,boolean.class}) public final <A,B> QObject.Signal2<A,B> overload(Class<A> type1, Class<B> type2) throws QNoSuchSignalException Provides an overloaded signal by parameter types.
The only valid calls are:
buttonToggled.overload(io.qt.widgets.QAbstractButton.class, boolean.class)
buttonToggled.overload(int.class, boolean.class)
QNoSuchSignalException
is thrown otherwise.- Type Parameters:
A
- signal parameter typeB
- signal parameter type- Parameters:
type1
- value of type Atype2
- value of type B- Returns:
- overloaded signal
- Throws:
QNoSuchSignalException
- if signal is not available
-
connect
public final <A,B> QMetaObject.Connection connect(QMetaObject.Slot2<A, B> slot, Qt.ConnectionType ... connectionType) throws QNoSuchSignalExceptionInitializes 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.QNoSuchSignalException
-
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,A, QMetaObject.Connection connectB> (Receiver receiver, QMetaObject.Slot3<Receiver, A, throws QNoSuchSignalExceptionB> 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.QNoSuchSignalException
-
disconnect
public final <Receiver,A, boolean disconnectB> (Receiver receiver, QMetaObject.Slot3<Receiver, A, B> slot) 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 <A,B> QMetaObject.Connection connect(QMetaObject.Connectable2<A, B> signal, Qt.ConnectionType ... connectionType) throws QNoSuchSignalExceptionCreates a connection from this signal to another. Whenever this signal is emitted, it will cause the second signal to be emitted as well.- Parameters:
signal
- The second signal. This will be emitted whenever this signal is emitted.connectionType
- One of the connection types defined in the Qt interface.- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.QNoSuchSignalException
-
disconnect
Disconnects a signal from another signal if the two were previously connected by a call to connect. A call to this function will assure that the emission of the first signal will not cause the emission of the second.- Parameters:
signal
- The second signal.- Returns:
true
if the two signals were successfully disconnected, orfalse
otherwise.
-
connect
public final <A,B> QMetaObject.Connection connect(QMetaObject.AbstractPublicSignal2<A, B> signal, Qt.ConnectionType ... connectionType) throws QNoSuchSignalExceptionCreates a connection from this signal to another. Whenever this signal is emitted, it will cause the second signal to be emitted as well.- Parameters:
signal
- The second signal. This will be emitted whenever this signal is emitted.connectionType
- One of the connection types defined in the Qt interface.- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.QNoSuchSignalException
-
disconnect
Disconnects a signal from another signal if the two were previously connected by a call to connect. A call to this function will assure that the emission of the first signal will not cause the emission of the second.- Parameters:
signal
- The second signal.- Returns:
true
if the two signals were successfully disconnected, orfalse
otherwise.
-
connect
public final <A> QMetaObject.Connection connect(QMetaObject.Slot1<A> slot, Qt.ConnectionType ... connectionType) throws QNoSuchSignalException 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.QNoSuchSignalException
-
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,A> QMetaObject.Connection connect(Receiver receiver, QMetaObject.Slot2<Receiver, A> slot, Qt.ConnectionType ... connectionType) throws QNoSuchSignalExceptionInitializes 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.QNoSuchSignalException
-
disconnect
public final <Receiver,A> boolean disconnect(Receiver receiver, QMetaObject.Slot2<Receiver, A> slot) 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 <A> QMetaObject.Connection connect(QMetaObject.AbstractPublicSignal1<A> signal, Qt.ConnectionType ... connectionType) throws QNoSuchSignalException Creates a connection from this signal to another. Whenever this signal is emitted, it will cause the second signal to be emitted as well.- Parameters:
signal
- The second signal. This will be emitted whenever this signal is emitted.connectionType
- One of the connection types defined in the Qt interface.- Returns:
- connection if successful or
null
otherwise - Throws:
QMisfittingSignatureException
- Raised if their signatures are incompatible.QNoSuchSignalException
-
disconnect
Disconnects a signal from another signal if the two were previously connected by a call to connect. A call to this function will assure that the emission of the first signal will not cause the emission of the second.- Parameters:
signal
- The second signal.- Returns:
true
if the two signals were successfully disconnected, orfalse
otherwise.
-
emit
- Since:
- This function was introduced in Qt 5.2.
-
emit
public final void emit(int arg__1, boolean arg__2) - Since:
- This function was introduced in Qt 5.2.
-