Class: QgsProcessingContextGenerator

An interface for objects which can create Processing contexts.

Added in version 3.4.

Note

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

The following methods must be implemented: processingContext()

Class Hierarchy

Inheritance diagram of qgis.gui.QgsProcessingContextGenerator

Subclasses

QgsProcessingAlgorithmDialogBase

Base class for processing algorithm dialogs.

Abstract Methods

processingContext

This method needs to be reimplemented in all classes which implement this interface and return a Processing context.

class qgis.gui.QgsProcessingContextGenerator[source]

Bases: object

abstract processingContext(self) QgsProcessingContext | None[source]

This method needs to be reimplemented in all classes which implement this interface and return a Processing context.

Note that ownership of the context is not transferred - it is intended that subclasses return a pointer to a context which they have already created and own.

Return type:

Optional[QgsProcessingContext]