Class: QgsProcessingBatchAlgorithmDialogBase¶
Base class for processing batch algorithm dialogs.
Note
This is not considered stable API and may change in future QGIS versions.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Base class for processing algorithm dialogs. |
|
An interface for objects which can create sets of parameter values for processing algorithms. |
|
An interface for objects which can create Processing contexts. |
Methods
Creates a new Processing context. |
|
Creates a summary table of the results of a batch execution. |
|
Starts the batch execution, where the parameters list dictates the parameters for each component step of the batch. |
|
Called when the dialog should handle the results of an algorithm, e.g. by loading layers into the current project. |
|
Populates the HTML results dialog as a result of a successful algorithm execution. |
|
Will be called when the "Run as Single" button is clicked. |
- class qgis.gui.QgsProcessingBatchAlgorithmDialogBase[source]¶
Bases:
QgsProcessingAlgorithmDialogBase
- __init__(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
Constructor for QgsProcessingBatchAlgorithmDialogBase.
- Parameters:
parent (Optional[QWidget] = None)
flags (Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())
- createContext(self, feedback: QgsProcessingFeedback | None) QgsProcessingContext | None [source]¶
Creates a new Processing context.
(Each step in the batch processing will use a new Processing context)
- Parameters:
feedback (Optional[QgsProcessingFeedback])
- Return type:
Optional[QgsProcessingContext]
- createSummaryTable(self, results: Iterable[Dict[str, Any]], errors: Iterable[Dict[str, Any]])[source]¶
Creates a summary table of the results of a batch execution.
- Parameters:
results (Iterable[Dict[str, Any]])
errors (Iterable[Dict[str, Any]])
- execute(self, parameters: Iterable[Dict[str, Any]])[source]¶
Starts the batch execution, where the
parameters
list dictates the parameters for each component step of the batch.- Parameters:
parameters (Iterable[Dict[str, Any]])
- handleAlgorithmResults(self, algorithm: QgsProcessingAlgorithm | None, context: QgsProcessingContext, feedback: QgsProcessingFeedback | None, parameters: Dict[str, Any])[source]¶
Called when the dialog should handle the results of an algorithm, e.g. by loading layers into the current project.
- Parameters:
algorithm (Optional[QgsProcessingAlgorithm])
context (QgsProcessingContext)
feedback (Optional[QgsProcessingFeedback])
parameters (Dict[str, Any])