Class: QgsProcessingLayerOutputDestinationWidget¶
A widget which allows users to select the destination path for an output style Processing parameter.
Note
Not stable API
Added in version 3.14.
Class Hierarchy¶
Base classes¶
Methods
Adds the "Open output file after running" option to the widget. |
|
Returns |
|
Returns |
|
Registers a Processing parameters generator class that will be used to retrieve algorithm parameters for the widget when required. |
|
Sets the processing context in which this widget is being shown. |
|
Sets the value to show in the widget. |
|
Sets the context in which the widget is shown, e.g., the parent model algorithm, a linked map canvas, and other relevant information which allows the widget to fine-tune its behavior. |
|
Returns the widgets current value. |
Signals
Emitted whenever the destination value is changed in the widget. |
|
Emitted whenever the "skip output" option is toggled in the widget. |
- class qgis.gui.QgsProcessingLayerOutputDestinationWidget[source]¶
Bases:
QWidget
- __init__(parameter: QgsProcessingDestinationParameter | None, defaultSelection: bool, parent: QWidget | None = None)
Constructor for QgsProcessingLayerOutputDestinationWidget, associated with the specified
parameter
.- Parameters:
parameter (Optional[QgsProcessingDestinationParameter])
defaultSelection (bool)
parent (Optional[QWidget] = None)
- addOpenAfterRunningOption(self)[source]¶
Adds the “Open output file after running” option to the widget.
- openAfterRunning(self) bool [source]¶
Returns
True
if the widget has the “Open output file after running” option checked.- Return type:
bool
- outputIsSkipped(self) bool [source]¶
Returns
True
if the output is set to be skipped.- Return type:
bool
- registerProcessingParametersGenerator(self, generator: QgsProcessingParametersGenerator | None)[source]¶
Registers a Processing parameters
generator
class that will be used to retrieve algorithm parameters for the widget when required.Added in version 3.14.
- Parameters:
generator (Optional[QgsProcessingParametersGenerator])
- setContext(self, context: QgsProcessingContext | None)[source]¶
Sets the processing
context
in which this widget is being shown.- Parameters:
context (Optional[QgsProcessingContext])
- setWidgetContext(self, context: QgsProcessingParameterWidgetContext)[source]¶
Sets the
context
in which the widget is shown, e.g., the parent model algorithm, a linked map canvas, and other relevant information which allows the widget to fine-tune its behavior.- Parameters:
context (QgsProcessingParameterWidgetContext)