Class: QgsHistoryEntry

class qgis.gui.QgsHistoryEntry

Bases: sip.wrapper

Encapsulates a history entry.

Added in version 3.24.

QgsHistoryEntry() Constructor for an invalid entry.

QgsHistoryEntry(providerId: str, timestamp: Union[QDateTime, datetime.datetime], entry: Dict[str, Any]) Constructor for QgsHistoryEntry entry, with the specified providerId and timestamp.

QgsHistoryEntry(entry: Dict[str, Any]) Constructor for QgsHistoryEntry entry.

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

QgsHistoryEntry(QgsHistoryEntry)

Methods

isValid

Returns True if the entry is valid.

Attributes

entry
id
isValid(self) bool

Returns True if the entry is valid.

Added in version 3.32.

Return type:

bool

providerId
timestamp