Class: QgsProcessingModelParameter¶
Represents an input parameter used by the model.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Represents a component of a model algorithm. |
Constructor
Abstract Methods
Methods
Loads this parameter from a QVariantMap. |
|
Returns the associated parameter name. |
|
Sets the associated parameter name. |
|
Saves this parameter to a QVariant. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsProcessingModelParameter. See the FAQ for more details.
- class qgis.core.QgsProcessingModelParameter[source]¶
Bases:
QgsProcessingModelComponent- __init__(parameterName: str | None = '')¶
Constructor for QgsProcessingModelParameter. The parameter name should match one of the parameters from the parent model.
- Parameters:
parameterName (str|None = '')
- __init__(a0: QgsProcessingModelParameter)
- Parameters:
- abstract clone(self) QgsProcessingModelParameter | None[source]¶
- Return type:
- virtual comment(self) QgsProcessingModelComment | None[source]¶
- Return type:
- loadVariant(self, map: dict[str | None, Any]) bool[source]¶
Loads this parameter from a QVariantMap.
See also
- Parameters:
map (dict[str|None, Any])
- Return type:
bool
- parameterName(self) str[source]¶
Returns the associated parameter name. The parameter name should match one of the parameters from the parent model.
See also
- Return type:
str
- setParameterName(self, name: str | None)[source]¶
Sets the associated parameter name. The parameter name should match one of the parameters from the parent model.
See also
- Parameters:
name (str|None)