Class: QgsHistoryEntryGroup¶
- class qgis.gui.QgsHistoryEntryGroup¶
Bases:
QgsHistoryEntryNode
Base class for history entry “group” nodes, which contain children of their own.
Added in version 3.32.
QgsHistoryEntryGroup() Constructor for QgsHistoryEntryGroup
Methods
Adds a
child
node to this node.Returns the child at the specified
index
.- rtype:
int
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
.- addChild(self, child: QgsHistoryEntryNode | None)¶
Adds a
child
node to this node.Ownership is transferred to the group.
- Parameters:
child (Optional[QgsHistoryEntryNode])
- childAt(self, index: int) QgsHistoryEntryNode | None ¶
Returns the child at the specified
index
.- Parameters:
index (int)
- Return type:
Optional[QgsHistoryEntryNode]
- childCount(self) int ¶
- Return type:
int
- clear(self)¶
Clears the group, removing all its children.
- indexOf(self, child: QgsHistoryEntryNode | None) int ¶
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)¶
Inserts a
child
node at the specified index.Ownership is transferred to the group.
- Parameters:
index (int)
child (Optional[QgsHistoryEntryNode])
- removeChildAt(self, index: int)¶
Removes the child at the specified
index
.- Parameters:
index (int)