Class: QgsProcessingToolboxModelNode¶
-
class
qgis.gui.
QgsProcessingToolboxModelNode
¶ Bases:
PyQt5.QtCore.QObject
Abstract base class for nodes contained within a QgsProcessingToolboxModel.
Warning
Not part of stable API and may change in future QGIS releases.
Methods
Adds a child
node
to this node, transferring ownership of the node to this node.Returns a list of children belonging to the node.
Deletes all child nodes from this node.
Tries to find a child node belonging to this node, which corresponds to a group node with the given group
id
.Returns the node’s type.
Returns the node’s parent.
Removes the specified
node
from this node’s children, and gives ownership back to the caller.Attributes
-
NodeAlgorithm
= 2¶
-
NodeGroup
= 1¶
-
NodeProvider
= 0¶
-
NodeRecent
= 3¶
-
class
NodeType
¶ Bases:
int
-
addChildNode
(self, node: QgsProcessingToolboxModelNode)¶ Adds a child
node
to this node, transferring ownership of the node to this node.- Parameters
node (QgsProcessingToolboxModelNode) –
-
childEvent
()¶
-
children
(self) → object¶ Returns a list of children belonging to the node.
- Return type
object
-
connectNotify
()¶
-
customEvent
()¶
-
deleteChildren
(self)¶ Deletes all child nodes from this node.
-
disconnectNotify
()¶
-
getChildGroupNode
(self, id: str) → QgsProcessingToolboxModelGroupNode¶ Tries to find a child node belonging to this node, which corresponds to a group node with the given group
id
. Returns None if no matching child group node was found.- Parameters
id (str) –
- Return type
-
isSignalConnected
()¶
-
nodeType
(self) → QgsProcessingToolboxModelNode.NodeType¶ Returns the node’s type.
- Return type
-
parent
(self) → QgsProcessingToolboxModelNode¶ Returns the node’s parent. If the node’s parent is a null pointer, then the node is a root node.
- Return type
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
takeChild
(self, node: QgsProcessingToolboxModelNode) → QgsProcessingToolboxModelNode¶ Removes the specified
node
from this node’s children, and gives ownership back to the caller.- Parameters
node (QgsProcessingToolboxModelNode) –
- Return type
-
timerEvent
()¶
-