• PySide 模块
  • PySide.QtWebKit
  • 内容表

    上一话题

    QWebHistory

    下一话题

    QWebHitTestResult

    QWebHistoryItem

    概要

    函数

    详细描述

    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

    class PySide.QtWebKit. QWebHistoryItem ( other )
    参数: 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.QtWebKit.QWebHistoryItem. icon ( )
    返回类型: PySide.QtGui.QIcon

    Returns the icon associated with the history item.

    PySide.QtWebKit.QWebHistoryItem. isValid ( )
    返回类型: PySide.QtCore.bool

    Returns whether this is a valid history item.

    PySide.QtWebKit.QWebHistoryItem. lastVisited ( )
    返回类型: PySide.QtCore.QDateTime

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

    PySide.QtWebKit.QWebHistoryItem. originalUrl ( )
    返回类型: PySide.QtCore.QUrl

    Returns the original URL associated with the history item.

    PySide.QtWebKit.QWebHistoryItem. setUserData ( userData )
    参数: userData – object

    Stores user specific data userData with the history item.

    注意

    All copies of this item will be modified.

    PySide.QtWebKit.QWebHistoryItem. title ( )
    返回类型: unicode

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

    PySide.QtWebKit.QWebHistoryItem. url ( )
    返回类型: PySide.QtCore.QUrl

    Returns the URL associated with the history item.

    PySide.QtWebKit.QWebHistoryItem. userData ( )
    返回类型: object

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