Class: QgsHistoryEntry

Encapsulates a history entry.

Added in version 3.24.

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]
id: int
isValid(self) bool[source]

Returns True if the entry is valid.

Added in version 3.32.

Return type:

bool

providerId: str
timestamp: QDateTime