Class: QgsHistoryEntryGroup¶
- class qgis.gui.QgsHistoryEntryGroup¶
Bases:
QgsHistoryEntryNode
Base class for history entry “group” nodes, which contain children of their own.
New 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)¶
Adds a
child
node to this node.Ownership is transferred to the group.
- Parameters:
child (QgsHistoryEntryNode) –
- childAt(self, index: int) QgsHistoryEntryNode ¶
Returns the child at the specified
index
.- Parameters:
index (int) –
- Return type:
- childCount(self) int ¶
- Return type:
int
- clear(self)¶
Clears the group, removing all its children.
- indexOf(self, child: QgsHistoryEntryNode) int ¶
Returns the index of the specified
child
node.Warning
child
must be a valid child of this node.- Parameters:
child (QgsHistoryEntryNode) –
- Return type:
int
- insertChild(self, index: int, child: QgsHistoryEntryNode)¶
Inserts a
child
node at the specified index.Ownership is transferred to the group.
- Parameters:
index (int) –
child (QgsHistoryEntryNode) –
- removeChildAt(self, index: int)¶
Removes the child at the specified
index
.- Parameters:
index (int) –