QWebEngineHistoryItem#

The QWebEngineHistoryItem class represents one item in the history of a web engine page. More

Inheritance diagram of PySide6.QtWebEngineCore.QWebEngineHistoryItem

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

Each web engine history item represents an entry in the history stack of a web page, containing information about the page, its location, and the time when it was last visited.

class PySide6.QtWebEngineCore.QWebEngineHistoryItem(other)#
Parameters:

otherPySide6.QtWebEngineCore.QWebEngineHistoryItem

Constructs a history item from other. The new item and other will share their data, and modifying either this item or other will modify both instances.

PySide6.QtWebEngineCore.QWebEngineHistoryItem.iconUrl()#
Return type:

PySide6.QtCore.QUrl

Returns the URL of the icon associated with the history item.

PySide6.QtWebEngineCore.QWebEngineHistoryItem.isValid()#
Return type:

bool

Returns whether this is a valid history item.

PySide6.QtWebEngineCore.QWebEngineHistoryItem.lastVisited()#
Return type:

PySide6.QtCore.QDateTime

Returns the date and time when the page associated with the item was last visited.

See also

title() url()

PySide6.QtWebEngineCore.QWebEngineHistoryItem.originalUrl()#
Return type:

PySide6.QtCore.QUrl

Returns the original URL associated with the history item.

See also

url()

PySide6.QtWebEngineCore.QWebEngineHistoryItem.title()#
Return type:

str

Returns the title of the page associated with the history item.

See also

url() lastVisited()

PySide6.QtWebEngineCore.QWebEngineHistoryItem.url()#
Return type:

PySide6.QtCore.QUrl

Returns the URL associated with the history item.