Table Of Contents

Previous topic

QWebHistory

Next topic

QWebHitTestResult

QWebHistoryItem

Synopsis

Functions

Detailed Description

The PySide.QtWebKit.QWebHistoryItem class represents one item in the history of a PySide.QtWebKit.QWebPage

Each 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.

Function Description
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.

Note

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.

See also

PySide.QtWebKit.QWebHistory QWebPage.history() PySide.QtWebKit.QWebHistoryInterface

class PySide.QtWebKit.QWebHistoryItem(other)
Parameters:otherPySide.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.QtWebKit.QWebHistoryItem.icon()
Return type:PySide.QtGui.QIcon

Returns the icon associated with the history item.

PySide.QtWebKit.QWebHistoryItem.isValid()
Return type:PySide.QtCore.bool

Returns whether this is a valid history item.

PySide.QtWebKit.QWebHistoryItem.lastVisited()
Return type:PySide.QtCore.QDateTime

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

PySide.QtWebKit.QWebHistoryItem.originalUrl()
Return type:PySide.QtCore.QUrl

Returns the original URL associated with the history item.

PySide.QtWebKit.QWebHistoryItem.setUserData(userData)
Parameters:userData – object

Stores user specific data userData with the history item.

Note

All copies of this item will be modified.

PySide.QtWebKit.QWebHistoryItem.title()
Return type:unicode

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

PySide.QtWebKit.QWebHistoryItem.url()
Return type:PySide.QtCore.QUrl

Returns the URL associated with the history item.

PySide.QtWebKit.QWebHistoryItem.userData()
Return type:object

Returns the user specific data that was stored with the history item.