java.lang.Object
io.qt.internal.CoreUtility.AbstractMultiSignal<S>
io.qt.core.QObject.MultiSignal
io.qt.core.QSignalMapper.MultiSignal_mapped
- Enclosing class:
QSignalMapper
Wrapper class for overloaded signals:
mapped(QObject * arg__1)
mapped(QWidget * arg__1)
mapped(const QString & arg__1)
mapped(int arg__1)
-
Method Summary
Modifier and TypeMethodDescriptionfinal <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.Connectable1<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 <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.Connectable1<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) Deprecated.Use QSignalMapper::mappedInt(int) insteadfinal void
Deprecated.Use QSignalMapper::mappedObject(QObject *) insteadfinal void
Deprecated.Use QSignalMapper::mappedWidget(QWidget *) insteadfinal void
Deprecated.Use QSignalMapper::mappedString(const QString&) insteadfinal <A> QObject.Signal1<A>
Provides an overloaded signal by parameter type.Methods inherited from class io.qt.core.QObject.MultiSignal
connect, connect, connect, connect, containingObject, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectAll
-
Method Details
-
overload
@QtAllowedTypeSet(QObject.class) @QtAllowedTypeSet(QWidget.class) @QtAllowedTypeSet(java.lang.String.class) @QtAllowedTypeSet(int.class) public final <A> QObject.Signal1<A> overload(Class<A> type1) throws QNoSuchSignalException Provides an overloaded signal by parameter type.
The only valid calls are:
mapped.overload(io.qt.core.QObject.class)
mapped.overload(io.qt.widgets.QWidget.class)
mapped.overload(java.lang.String.class)
mapped.overload(int.class)
QNoSuchSignalException
is thrown otherwise.- Type Parameters:
A
- signal parameter type- Parameters:
type1
- value of type A- Returns:
- overloaded signal
- Throws:
QNoSuchSignalException
- if signal is not available
-
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.QUninvokableSlotException
- Raised if slot is annotated@QtUninvokable
.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 <A> QMetaObject.Connection connect(QMetaObject.Connectable1<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.
-
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
Deprecated.Use QSignalMapper::mappedObject(QObject *) instead -
emit
Deprecated.Use QSignalMapper::mappedWidget(QWidget *) instead -
emit
Deprecated.Use QSignalMapper::mappedString(const QString&) instead -
emit
Deprecated.Use QSignalMapper::mappedInt(int) instead
-