Class: QgsProcessingGuiUtils¶
Contains utility functions relating to Processing GUI components.
Warning
This is not considered stable API, and is exposed to Python for internal use only.
Added in version 3.44.
List of all members, including inherited members
Classes
Contains details of a layer result from running an algorithm. |
Static Methods
Responsible for adding layers created by an algorithm to a project and the project's layer tree in the correct location. |
|
Applies post-processing steps to the |
|
Returns the destination layer tree group to store results in, or |
- class qgis.gui.QgsProcessingGuiUtils[source]¶
Bases:
object- class ResultLayerDetails[source]¶
Bases:
objectContains details of a layer result from running an algorithm.
Added in version 3.44.
- __init__(layer: QgsMapLayer | None)
Constructor for ResultLayerDetails.
Takes ownership of
layer.- Parameters:
layer (Optional[QgsMapLayer])
- __init__(a0: QgsProcessingGuiUtils.ResultLayerDetails)
- Parameters:
- destinationProject: QgsProject¶
- layer: QgsMapLayer¶
- sortKey: int¶
- targetLayerTreeGroup: QgsLayerTreeGroup¶
- static addResultLayers(layers: Iterable[QgsProcessingGuiUtils.ResultLayerDetails], context: QgsProcessingContext, view: QgsLayerTreeView | None = None)[source]¶
Responsible for adding layers created by an algorithm to a project and the project’s layer tree in the correct location.
- Parameters:
layers (Iterable[QgsProcessingGuiUtils.ResultLayerDetails])
context (QgsProcessingContext)
view (Optional[QgsLayerTreeView] = None)
- static configureResultLayerTreeLayer(layerTreeLayer: QgsLayerTreeLayer | None)[source]¶
Applies post-processing steps to the
QgsLayerTreeLayercreated for an algorithm’s output.- Parameters:
layerTreeLayer (Optional[QgsLayerTreeLayer])
- static layerTreeResultsGroup(layerDetails: QgsProcessingContext.LayerDetails, context: QgsProcessingContext) QgsLayerTreeGroup | None[source]¶
Returns the destination layer tree group to store results in, or
Noneif there is no specific destination tree group associated with the layer.- Parameters:
layerDetails (QgsProcessingContext.LayerDetails)
context (QgsProcessingContext)
- Return type:
Optional[QgsLayerTreeGroup]