PySide.QtWebKit.QWebHistoryItem class represents one item in the history of a PySide.QtWebKit.QWebPage
每 PySide.QtWebKit.QWebHistoryItem instance represents an entry in the history stack of a Web page, containing information about the page, its location, and when it was last visited.
The following table shows the properties of the page held by the history item, and the functions used to access them.
| 函数 | 描述 |
| PySide.QtWebKit.QWebHistoryItem.title() | The page title. |
| PySide.QtWebKit.QWebHistoryItem.url() | The location of the page. |
| PySide.QtWebKit.QWebHistoryItem.originalUrl() | The URL used to access the page. |
| PySide.QtWebKit.QWebHistoryItem.lastVisited() | The date and time of the user's last visit to the page. |
| PySide.QtWebKit.QWebHistoryItem.icon() | The icon associated with the page that was provided by the server. |
| PySide.QtWebKit.QWebHistoryItem.userData() | The user specific data that was stored with the history item. |
注意
PySide.QtWebKit.QWebHistoryItem objects are value based, but explicitly shared . Changing a PySide.QtWebKit.QWebHistoryItem instance by calling PySide.QtWebKit.QWebHistoryItem.setUserData() will change all copies of that instance.
另请参阅
PySide.QtWebKit.QWebHistory QWebPage.history() PySide.QtWebKit.QWebHistoryInterface
| 参数: | other – PySide.QtWebKit.QWebHistoryItem |
|---|
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.
| 返回类型: | PySide.QtGui.QIcon |
|---|
Returns the icon associated with the history item.
| 返回类型: | PySide.QtCore.bool |
|---|
Returns whether this is a valid history item.
| 返回类型: | PySide.QtCore.QDateTime |
|---|
Returns the date and time that the page associated with the item was last visited.
| 返回类型: | PySide.QtCore.QUrl |
|---|
Returns the original URL associated with the history item.
| 参数: | userData – object |
|---|
Stores user specific data userData with the history item.
注意
All copies of this item will be modified.
| 返回类型: | unicode |
|---|
Returns the title of the page associated with the history item.
| 返回类型: | PySide.QtCore.QUrl |
|---|
Returns the URL associated with the history item.
| 返回类型: | object |
|---|
Returns the user specific data that was stored with the history item.