Class: QgsHistoryEntry

Encapsulates a history entry.

Added in version 3.24.

Methods

isValid

Returns True if the entry is valid.

Attributes

entry

Entry details.

id

Entry ID.

providerId

Associated history provider ID

timestamp

Entry timestamp

class qgis.gui.QgsHistoryEntry[source]

Bases: object

__init__()

Constructor for an invalid entry.

__init__(providerId: str | None, timestamp: QDateTime | datetime.datetime, entry: Dict[str, Any])

Constructor for QgsHistoryEntry entry, with the specified providerId and timestamp.

Parameters:
  • providerId (Optional[str])

  • timestamp (Union[QDateTime, datetime.datetime])

  • entry (Dict[str, Any])

__init__(entry: Dict[str, Any])

Constructor for QgsHistoryEntry entry.

The entry timestamp will be automatically set to the current date/time.

Parameters:

entry (Dict[str, Any])

__init__(a0: QgsHistoryEntry)
Parameters:

a0 (QgsHistoryEntry)

entry: Dict[str, object]

Entry details.

Entries details are stored as a free-form map. Interpretation of this map is the responsibility of the associated history provider.

id: int

Entry ID.

Added in version 3.32.

isValid(self) bool[source]

Returns True if the entry is valid.

Added in version 3.32.

Return type:

bool

providerId: str

Associated history provider ID

timestamp: QDateTime

Entry timestamp