QWebEngineHistoryModel¶
A data model that represents the history of a web engine page. More…
Synopsis¶
Functions¶
def
reset
()
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.
See also
- 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()¶
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.