Skip to content

SignalMapper

Qt Base Class: QSignalMapper

Signature: QSignalMapper(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
ObjectMixin
prettyqt.core.object
QSignalMapper
PySide6.QtCore
QSignalMapper(self, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473299817952["core.SignalMapper"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473288846144["QtCore.QSignalMapper"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299815024 --> 1473299817952
  140713234304496 --> 1473299815024
  1473288846144 --> 1473299817952
  1473288842240 --> 1473288846144
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: ObjectMixin, QSignalMapper

Bundles signals from identifiable senders.

Source code in prettyqt\core\signalmapper.py
class SignalMapper(core.ObjectMixin, core.QSignalMapper):
    """Bundles signals from identifiable senders."""

    def __getitem__(self, index: int | str | core.QObject) -> core.QObject:
        return self.mapping(index)

    def __delitem__(self, index: core.QObject):
        return self.removeMappings(index)

    def __setitem__(self, index: core.QObject, value: int | str | core.QObject):
        self.setMapping(index, value)

⌗ Property table

Qt Property Type Doc
objectName QString