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:

QgsApplication.actionScopeRegistry()

New in version 3.0.

Parameters

parent

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) –