QWebEngineHistoryModel#

A data model that represents the history of a web engine page. More

Inheritance diagram of PySide6.QtWebEngineCore.QWebEngineHistoryModel

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#

The QWebEngineHistoryModel type exposes the title, url, icon, and offset roles. The title, url and icon specify the title, URL, and favicon of the visited page. The offset specifies the position of the page in respect to the current page (0). A positive number indicates that the page was visited after the current page, whereas a negative number indicates that the page was visited before the current page.

This type is uncreatable, but it can be accessed by using the itemsModel , backItemsModel , forwardItemsModel methods.

class PySide6.QtWebEngineCore.QWebEngineHistoryModel#
PySide6.QtWebEngineCore.QWebEngineHistoryModel.Roles#

This enum describes specific roles, which history data model supports.

Constant

Description

QWebEngineHistoryModel.UrlRole

URL of the visited page

QWebEngineHistoryModel.TitleRole

Title of the visited page

QWebEngineHistoryModel.OffsetRole

The offset of the page in respect to the current page (0)

QWebEngineHistoryModel.IconUrlRole

Favicon of the visited page

PySide6.QtWebEngineCore.QWebEngineHistoryModel.reset()#