Obsolete Members for QSignalMapper

The following members of class QSignalMapper are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Signals

(obsolete) void mapped(QObject *object)
(obsolete) void mapped(QWidget *widget)
(obsolete) void mapped(const QString &text)
(obsolete) void mapped(int i)

Member Function Documentation

[signal] void QSignalMapper::mapped(QObject *object)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

This signal is emitted when map() is signalled from an object that has an object mapping set. The object provided by the map is passed in object.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

 connect(signalMapper, QOverload<QObject *>::of(&QSignalMapper::mapped),
     [=](QObject *object){ /* ... */ });

See also setMapping().

[signal] void QSignalMapper::mapped(QWidget *widget)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

This signal is emitted when map() is signalled from an object that has a widget mapping set. The object's mapped widget is passed in widget.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

 connect(signalMapper, QOverload<QWidget *>::of(&QSignalMapper::mapped),
     [=](QWidget *widget){ /* ... */ });

See also setMapping().

[signal] void QSignalMapper::mapped(const QString &text)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

This signal is emitted when map() is signalled from an object that has a string mapping set. The object's mapped string is passed in text.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

 connect(signalMapper, QOverload<const QString &>::of(&QSignalMapper::mapped),
     [=](const QString &text){ /* ... */ });

See also setMapping().

[signal] void QSignalMapper::mapped(int i)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

This signal is emitted when map() is signalled from an object that has an integer mapping set. The object's mapped integer is passed in i.

Note: Signal mapped is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

 connect(signalMapper, QOverload<int>::of(&QSignalMapper::mapped),
     [=](int i){ /* ... */ });

See also setMapping().