Class: QgsProcessingAlgorithmWidget¶
A widget for setting the parameters and executing single Processing algorithms.
Note
This is not considered stable API and may change in future QGIS versions.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for widgets which contain settings for running Processing algorithms. |
|
An interface for objects which can create sets of parameter values for processing algorithms. |
|
An interface for objects which can create Processing contexts. |
Constructor
Methods
Handles the results of validating parameter values. |
|
Returns |
|
Returns the child parameters widget. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsProcessingAlgorithmWidget. See the FAQ for more details.
Creates the parameters panel to show in the widget. |
|
- class qgis.gui.QgsProcessingAlgorithmWidget[source]¶
Bases:
QgsProcessingAlgorithmWidgetBase- __init__(algorithm: QgsProcessingAlgorithm | None, inPlace: bool = False, parentWindow: QMainWindow | None = None, flags: QgsProcessingAlgorithmWidgetBase.WidgetFlag = QgsProcessingAlgorithmWidgetBase.WidgetFlags(), initialState: Qgis.DockableWidgetInitialState = Qgis.DockableWidgetInitialState.RestorePreviousState)¶
Constructor for QgsProcessingAlgorithmWidget.
- Parameters:
algorithm (QgsProcessingAlgorithm|None)
inPlace (bool = False)
parentWindow (QMainWindow|None = None)
flags (QgsProcessingAlgorithmWidgetBase.WidgetFlag = QgsProcessingAlgorithmWidgetBase.WidgetFlags())
initialState (Qgis.DockableWidgetInitialState = Qgis.DockableWidgetInitialState.RestorePreviousState)
- virtual createParametersPanel(self, inPlaceMode: bool, activeLayer: QgsVectorLayer | None, messageBar: QgsMessageBar | None) QgsProcessingParametersWidget | None[source]¶
Creates the parameters panel to show in the widget.
- Parameters:
inPlaceMode (bool)
activeLayer (QgsVectorLayer|None)
messageBar (QgsMessageBar|None)
- Return type:
- handleValidationResults(self, results: Iterable[QgsProcessingParametersGenerator.ParameterValidationResult]) bool[source]¶
Handles the results of validating parameter values.
Returns
Trueif all parameter values are valid.- Parameters:
results (Iterable[QgsProcessingParametersGenerator.ParameterValidationResult])
- Return type:
bool
- inPlace(self) bool[source]¶
Returns
Trueif the widget is running in the “in-place edits” mode.- Return type:
bool
- parametersWidget(self) QgsProcessingParametersWidget | None[source]¶
Returns the child parameters widget.
- Return type:
- virtual processingContext(self) QgsProcessingContext | None[source]¶
- Return type:
QgsProcessingContext|None