Subgroup: Map
Class: QgsMapLayerAction¶
-
class
qgis.gui.
QgsMapLayerAction
¶ Bases:
PyQt5.QtWidgets.QAction
An action which can run on map layers
Methods
actionGroup
activate
associatedGraphicsWidgets
associatedWidgets
autoRepeat
blockSignals
canRunUsingLayer
True if action can run using the specified layer childEvent
children
connectNotify
customEvent
data
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] font
hover
icon
iconText
inherits
installEventFilter
isCheckable
isChecked
isEnabled
isIconVisibleInMenu
isSeparator
isSignalConnected
isVisible
isWidgetType
isWindowType
killTimer
menu
menuRole
metaObject
moveToThread
objectName
parent
parentWidget
priority
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
sender
senderSignalIndex
setActionGroup
setAutoRepeat
setCheckable
setChecked
setData
setDisabled
setEnabled
setFont
setIcon
setIconText
setIconVisibleInMenu
setMenu
setMenuRole
setObjectName
setParent
setPriority
setProperty
setSeparator
setShortcut
setShortcutContext
setShortcuts
setShortcuts(self, QKeySequence.StandardKey) setStatusTip
setTargets
Define the targets of the action setText
setToolTip
setVisible
setWhatsThis
shortcut
shortcutContext
shortcuts
showStatusText
signalsBlocked
startTimer
statusTip
targets
Return availibity of action text
thread
timerEvent
toggle
toolTip
tr
trigger
triggerForFeature
Triggers the action with the specified layer and feature. triggerForFeatures
Triggers the action with the specified layer and list of feature. triggerForLayer
Triggers the action with the specified layer. whatsThis
Attributes
AboutQtRole
AboutRole
AllActions
ApplicationSpecificRole
HighPriority
Hover
Layer
LowPriority
MultipleFeatures
NoRole
NormalPriority
PreferencesRole
QuitRole
SingleFeature
TextHeuristicRole
Trigger
changed
changed(self) [signal] destroyed
destroyed(self, QObject = None) [signal] hovered
hovered(self) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
toggled
toggled(self, bool) [signal] triggered
triggered(self, bool = False) [signal] triggeredForFeature
Triggered when action has been run for a specific feature [signal] triggeredForFeatures
Triggered when action has been run for a specific list of features [signal] triggeredForLayer
Triggered when action has been run for a specific layer [signal] -
AllActions
= 7¶
-
Layer
= 1¶
-
MultipleFeatures
= 4¶
-
SingleFeature
= 2¶
-
class
Target
¶ Bases:
int
-
class
Targets
¶ Bases:
sip.wrapper
QgsMapLayerAction.Targets(Union[QgsMapLayerAction.Targets, QgsMapLayerAction.Target]) QgsMapLayerAction.Targets(QgsMapLayerAction.Targets)
-
canRunUsingLayer
(self, layer: QgsMapLayer) → bool¶ True if action can run using the specified layer
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
event
()¶
-
isSignalConnected
()¶
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setTargets
(self, targets: Union[QgsMapLayerAction.Targets, QgsMapLayerAction.Target])¶ Define the targets of the action
-
targets
(self) → QgsMapLayerAction.Targets¶ Return availibity of action
-
timerEvent
()¶
-
triggerForFeature
(self, layer: QgsMapLayer, feature: QgsFeature)¶ Triggers the action with the specified layer and feature.
-
triggerForFeatures
(self, layer: QgsMapLayer, featureList: Iterable[QgsFeature])¶ Triggers the action with the specified layer and list of feature.
-
triggerForLayer
(self, layer: QgsMapLayer)¶ Triggers the action with the specified layer.
-
triggeredForFeature
¶ Triggered when action has been run for a specific feature [signal]
-
triggeredForFeatures
¶ Triggered when action has been run for a specific list of features [signal]
-
triggeredForLayer
¶ Triggered when action has been run for a specific layer [signal]
-