WebEngineHistoryModel QML Type

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

import 语句: import QtWebEngine
Since: QtWebEngine 1.1
实例化: QWebEngineHistoryModel

详细描述

The WebEngineHistoryModel type exposes the title , url , icon ,和 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 WebEngineView.history 特性。

另请参阅 WebEngineHistory .