Class: QgsHistoryWidget

A widget showing entries from a QgsHistoryProviderRegistry.

Added in version 3.32.

QgsHistoryWidget

QgsHistoryWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsHistoryWidget

Base classes

QgsPanelWidget

Base class for any widget that can be shown as an inline panel.

QWidget

QObject

QPaintDevice

class qgis.gui.QgsHistoryWidget[source]

Bases: QgsPanelWidget

__init__(providerId: str | None = '', backends: Qgis.HistoryProviderBackends | Qgis.HistoryProviderBackend = Qgis.HistoryProviderBackend.LocalProfile, registry: QgsHistoryProviderRegistry | None = None, context: QgsHistoryWidgetContext = QgsHistoryWidgetContext(), parent: QWidget | None = None)

Constructor for QgsHistoryWidget, with the specified parent widget.

If providerId is specified then the widget will contain only items from the matching history provider. If backends is specified then the widget will be filtered to only matching backends.

If no registry is specified then the singleton QgsHistoryProviderRegistry from QgsGui.historyProviderRegistry() will be used.

Parameters: