Class: QgsHistoryEntryGroup

Base class for history entry “group” nodes, which contain children of their own.

Added in version 3.32.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsHistoryEntryGroup

Base classes

QgsHistoryEntryNode

Base class for nodes representing a QgsHistoryEntry.

Methods

addChild

Adds a child node to this node.

childAt

Returns the child at the specified index.

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.

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]

clear(self)[source]

Clears the group, removing all its children.

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

Removes the child at the specified index.

Parameters:

index (int)