Skip to content

PythonQt.QtCore.QSignalMapper · declarations 001

Back to PythonQt.QtCore.QSignalMapper

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.destroyed; argument details are not documented.

map

map(sender: Any) -> None

X.map(sender)

Supplemental documentation: Qt 5 reference:

[slot] void QSignalMapper::map(QObject *sender)

This slot emits signals based on the sender object.

[slot] void QSignalMapper::map()

This slot emits signals based on which object sends signals to it.

Upstream PySide2 reference signatures (binding differences may apply):

map(self) -> None
map(self, sender: PySide2.QtCore.QObject) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#map

mapped

mapped(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.mapped; argument details are not documented.

mappedInt

mappedInt(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.mappedInt; argument details are not documented.

Supplemental documentation: Qt 5 reference:

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

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.

This function was introduced in Qt 5.15.

See also setMapping().

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#mappedInt

mappedObject

mappedObject(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.mappedObject; argument details are not documented.

Supplemental documentation: Qt 5 reference:

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

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.

This function was introduced in Qt 5.15.

See also setMapping().

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#mappedObject

mappedString

mappedString(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.mappedString; argument details are not documented.

Supplemental documentation: Qt 5 reference:

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

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.

This function was introduced in Qt 5.15.

See also setMapping().

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#mappedString

mappedWidget

mappedWidget(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.mappedWidget; argument details are not documented.

Supplemental documentation: Qt 5 reference:

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

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.

This function was introduced in Qt 5.15.

See also setMapping().

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#mappedWidget

mapping

mapping(object: Any) -> Any

X.mapping(object) -> PythonQt.private.QObject

Supplemental documentation: Qt 5 reference:

QObject *QSignalMapper::mapping(int id) const

Returns the sender QObject that is associated with the id.

See also setMapping().

QObject *QSignalMapper::mapping(const QString \&id) const

This function overloads mapping().

QObject *QSignalMapper::mapping(QWidget *widget) const

This function overloads mapping().

Returns the sender QObject that is associated with the widget.

QObject *QSignalMapper::mapping(QObject *object) const

This function overloads mapping().

Returns the sender QObject that is associated with the object.

Upstream PySide2 reference signatures (binding differences may apply):

mapping(self, id: int) -> PySide2.QtCore.QObject
mapping(self, object: PySide2.QtCore.QObject) -> PySide2.QtCore.QObject
mapping(self, text: str) -> PySide2.QtCore.QObject

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#mapping

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QSignalMapper.objectNameChanged; argument details are not documented.

removeMappings

removeMappings(sender: Any) -> None

X.removeMappings(sender)

Supplemental documentation: Qt 5 reference:

void QSignalMapper::removeMappings(QObject *sender)

Removes all mappings for sender.

This is done automatically when mapped objects are destroyed.

Note: This does not disconnect any signals. If sender is not destroyed then this will need to be done explicitly if required.

Upstream PySide2 reference signatures (binding differences may apply):

removeMappings(self, sender: PySide2.QtCore.QObject) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#removeMappings

setMapping

setMapping(sender: Any, object: Any) -> None

X.setMapping(sender, object)

Supplemental documentation: Qt 5 reference:

void QSignalMapper::setMapping(QObject *sender, int id)

Adds a mapping so that when map() is signalled from the given sender, the signal mappedInt(id) is emitted.

There may be at most one integer ID for each sender.

See also mapping().

void QSignalMapper::setMapping(QObject *sender, const QString \&text)

Adds a mapping so that when map() is signalled from the sender, the signal mappedString(text ) is emitted.

There may be at most one text for each sender.

void QSignalMapper::setMapping(QObject *sender, QWidget *widget)

Adds a mapping so that when map() is signalled from the sender, the signal mappedWidget(widget ) is emitted.

There may be at most one widget for each sender.

void QSignalMapper::setMapping(QObject *sender, QObject *object)

Adds a mapping so that when map() is signalled from the sender, the signal mappedObject(object ) is emitted.

There may be at most one object for each sender.

Upstream PySide2 reference signatures (binding differences may apply):

setMapping(self, sender: PySide2.QtCore.QObject, id: int) -> None
setMapping(self, sender: PySide2.QtCore.QObject, object: PySide2.QtCore.QObject) -> None
setMapping(self, sender: PySide2.QtCore.QObject, text: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qsignalmapper.html#setMapping