Class: QgsHistoryEntryGroup¶
Base class for history entry “group” nodes, which contain children of their own.
Added in version 3.32.
Class Hierarchy¶
Base classes¶
Base class for nodes representing a |
Methods
Adds a child node to this node. |
|
Returns the child at the specified index. |
|
Clears the group, removing all its children. |
|
Returns the index of the specified child node. |
|
Inserts a child node at the specified index. |
|
Removes the child at the specified index. |
- class qgis.gui.QgsHistoryEntryGroup[source]¶
Bases:
QgsHistoryEntryNode
- addChild(self, child: QgsHistoryEntryNode | None)[source]¶
Adds a
child
node to this node.Ownership is transferred to the group.
- Parameters:
child (Optional[QgsHistoryEntryNode])
- childAt(self, index: int) QgsHistoryEntryNode | None [source]¶
Returns the child at the specified
index
.- Parameters:
index (int)
- Return type:
Optional[QgsHistoryEntryNode]
- indexOf(self, child: QgsHistoryEntryNode | None) int [source]¶
Returns the index of the specified
child
node.Warning
child
must be a valid child of this node.- Parameters:
child (Optional[QgsHistoryEntryNode])
- Return type:
int
- insertChild(self, index: int, child: QgsHistoryEntryNode | None)[source]¶
Inserts a
child
node at the specified index.Ownership is transferred to the group.
- Parameters:
index (int)
child (Optional[QgsHistoryEntryNode])