Subgroup: Action

Class: QgsActionScopeRegistry

class qgis.core.QgsActionScopeRegistry(parent: QObject = None)

Bases: PyQt5.QtCore.QObject

Create a new QgsActionScopeRegistry. QGIS already creates a central registry. You will normally want to use QgsApplication.actionScopeRegistry() to get access to that one instead.

New in version 3.0.

The action scope registry is an application wide registry that contains a list of available action scopes. Some scopes are available by default, additional ones can be registered at runtime by plugins or custom applications.

To get access use the QgsApplication:

` :py:func:`QgsApplication.actionScopeRegistry()` `

New in version 3.0: Methods

actionScope Gets an action scope by its id.
actionScopes Gets all registered action scopes.
childEvent
connectNotify
customEvent
disconnectNotify
isSignalConnected
receivers
registerActionScope Register an additional action scope.
sender
senderSignalIndex
timerEvent
unregisterActionScope Unregister an additional action scope.

Signals

actionScopesChanged Emitted whenever a new action scope is registered or an action scope is unregistered.

Attributes

actionScope(self, id: str) → QgsActionScope

Gets an action scope by its id.

New in version 3.0.

actionScopes(self) → object

Gets all registered action scopes.

New in version 3.0.

actionScopesChanged

Emitted whenever a new action scope is registered or an action scope is unregistered.

New in version 3.0: [signal]

childEvent()
connectNotify()
customEvent()
disconnectNotify()
isSignalConnected()
receivers()
registerActionScope(self, actionScope: QgsActionScope)

Register an additional action scope.

New in version 3.0.

sender()
senderSignalIndex()
timerEvent()
unregisterActionScope(self, actionScope: QgsActionScope)

Unregister an additional action scope.

New in version 3.0.