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

addChild

Adds a child node to this node.

childAt

Returns the child at the specified index.

childCount

rtype:

int

clear

Clears the group, removing all its children.

indexOf

Returns the index of the specified child node.

insertChild

Inserts a child node at the specified index.

removeChildAt

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:

QgsHistoryEntryNode

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:
removeChildAt(self, index: int)

Removes the child at the specified index.

Parameters:

index (int) –