内容表

上一话题

QWebEngineHistory

下一话题

QWebEnginePage

QWebEngineHistoryItem

QWebEngineHistoryItem class represents one item in the history of a web engine page. 更多

Inheritance diagram of PySide2.QtWebEngineWidgets.QWebEngineHistoryItem

概要

函数

详细描述

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.

另请参阅

QWebEngineHistory history()

class QWebEngineHistoryItem ( other )
参数

other QWebEngineHistoryItem

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. iconUrl ( )
返回类型

QUrl

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

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. isValid ( )
返回类型

bool

Returns whether this is a valid history item.

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. lastVisited ( )
返回类型

QDateTime

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

另请参阅

title() url()

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. originalUrl ( )
返回类型

QUrl

Returns the original URL associated with the history item.

另请参阅

url()

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. swap ( other )
参数

other QWebEngineHistoryItem

Swaps the history item with the other 项。

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. title ( )
返回类型

unicode

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

PySide2.QtWebEngineWidgets.QWebEngineHistoryItem. url ( )
返回类型

QUrl

Returns the URL associated with the history item.