Class: QgsProcessingToolboxModelGroupNode

Processing toolbox model node corresponding to a group of algorithms.

Warning

Not part of stable API and may change in future QGIS releases.

Added in version 3.4.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsProcessingToolboxModelGroupNode

Base classes

QgsProcessingToolboxModelNode

Abstract base class for nodes contained within a QgsProcessingToolboxModel.

QObject

Methods

id

Returns the group's ID, which is unique and untranslated.

name

Returns the group's name, which is translated and user-visible.

class qgis.gui.QgsProcessingToolboxModelGroupNode[source]

Bases: QgsProcessingToolboxModelNode

__init__(id: str | None, name: str | None)

Constructor for QgsProcessingToolboxModelGroupNode.

The id argument specifies the group ID (unique and untranslated), and the name argument gives the translated, user-visible name of the group.

Parameters:
  • id (Optional[str])

  • name (Optional[str])

id(self) str[source]

Returns the group’s ID, which is unique and untranslated.

Return type:

str

name(self) str[source]

Returns the group’s name, which is translated and user-visible.

Return type:

str