Class: QgsExpressionContextScopeGenerator

Abstract interface for generating an expression context scope.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: createExpressionContextScope()

Class Hierarchy

Inheritance diagram of qgis.core.QgsExpressionContextScopeGenerator

Subclasses

QgsVectorLayer

Represents a vector layer which manages a vector based dataset.

QgsProject

Encapsulates a QGIS project, including sets of map layers and their styles, layouts, annotations, canvases, etc.

QgsTemporalNavigationObject

Implements a temporal controller based on a frame by frame navigation and animation.

QgsVectorLayerSelectedFeatureSource

QgsFeatureSource subclass for the selected features from a QgsVectorLayer.

Abstract Methods

createExpressionContextScope

This method needs to be reimplemented in all classes which implement this interface and return an expression context scope.

class qgis.core.QgsExpressionContextScopeGenerator[source]

Bases: object

abstract createExpressionContextScope(self) QgsExpressionContextScope | None[source]

This method needs to be reimplemented in all classes which implement this interface and return an expression context scope.

Return type:

Optional[QgsExpressionContextScope]