Class: QgsProcessingModelParameter¶
Represents an input parameter used by the model.
Class Hierarchy¶
Base classes¶
Represents a component of a model algorithm.  | 
Methods
Loads this parameter from a QVariantMap.  | 
|
Returns the associated parameter name.  | 
|
Sets the associated parameter name.  | 
|
Saves this parameter to a QVariant.  | 
- 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 (Optional[str] = '')
- __init__(a0: QgsProcessingModelParameter)
 - Parameters:
 
- loadVariant(self, map: Dict[str, Any]) bool[source]¶
 Loads this parameter from a QVariantMap.
See also
- Parameters:
 map (Dict[str, 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 (Optional[str])