Function: createAlgorithmDialog

qgis.processing.createAlgorithmDialog(algOrName: str | QgsProcessingAlgorithm, parameters: Dict[str, object] = {}) str | QgsProcessingAlgorithm

Creates and returns an algorithm dialog for the specified algorithm, prepopulated with a given set of parameters. It is the caller’s responsibility to execute and delete this dialog.

Parameters:
  • algOrName – Either an instance of an algorithm, or an algorithm’s ID

  • parameters – Initial algorithm parameters dictionary

Returns:

algorithm results as a dictionary, or None if execution failed

Raises:

QgsNotSupportedException if the Processing plugin has not been loaded