Subgroup: Map
Class: QgsMapLayerActionRegistry¶
-
class
qgis.gui.
QgsMapLayerActionRegistry
¶ Bases:
PyQt5.QtCore.QObject
This class tracks map layer actions.
QgsMapLayerActionRegistry is not usually directly created, but rather accessed through
QgsGui.mapLayerActionRegistry()
Methods
addMapLayerAction
Adds a map layer action to the registry blockSignals
childEvent
children
connectNotify
customEvent
defaultActionForLayer
Returns the default action for a layer deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
mapLayerActions
Returns the map layer actions which can run on the specified layer metaObject
moveToThread
objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
removeMapLayerAction
Removes a map layer action from the registry sender
senderSignalIndex
setDefaultActionForLayer
Sets the default action for a layer setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr
Attributes
changed
Triggered when an action is added or removed from the registry [signal] destroyed
destroyed(self, QObject = None) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
-
addMapLayerAction
(self, action: QgsMapLayerAction)¶ Adds a map layer action to the registry
-
changed
¶ Triggered when an action is added or removed from the registry [signal]
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
defaultActionForLayer
(self, layer: QgsMapLayer) → QgsMapLayerAction¶ Returns the default action for a layer
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
mapLayerActions
(self, layer: QgsMapLayer, targets: Union[QgsMapLayerAction.Targets, QgsMapLayerAction.Target] = QgsMapLayerAction.AllActions) → object¶ Returns the map layer actions which can run on the specified layer
-
receivers
()¶
-
removeMapLayerAction
(self, action: QgsMapLayerAction) → bool¶ Removes a map layer action from the registry
-
sender
()¶
-
senderSignalIndex
()¶
-
setDefaultActionForLayer
(self, layer: QgsMapLayer, action: QgsMapLayerAction)¶ Sets the default action for a layer
-
timerEvent
()¶
-