Class: QgsActionScopeRegistry

class qgis.core.QgsActionScopeRegistry

Bases: PyQt5.QtCore.QObject

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:

QgsApplication.actionScopeRegistry()

New in version 3.0.

QgsActionScopeRegistry(parent: QObject = None) 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.

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.

actionScope(self, id: str)QgsActionScope

Gets an action scope by its id.

New in version 3.0.

Parameters

id (str) –

Return type

QgsActionScope

actionScopes(self)Set[QgsActionScope]

Gets all registered action scopes.

New in version 3.0.

Return type

Set[QgsActionScope]

actionScopesChanged

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

New in version 3.0: [signal]

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
isSignalConnected(self, QMetaMethod)bool
receivers(self, PYQT_SIGNAL)int
registerActionScope(self, actionScope: QgsActionScope)

Register an additional action scope.

New in version 3.0.

Parameters

actionScope (QgsActionScope) –

sender(self)QObject
senderSignalIndex(self)int
timerEvent(self, QTimerEvent)
unregisterActionScope(self, actionScope: QgsActionScope)

Unregister an additional action scope.

New in version 3.0.

Parameters

actionScope (QgsActionScope) –