Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

QWebHistoryItem Class Reference
[QtWebKit module]

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

 #include <QWebHistoryItem>

This class was introduced in Qt 4.4.

Public Functions


Detailed Description

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

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

FunctionDescription
title()The page title.
url()The location of the page.
originalUrl()The URL used to access the page.
lastVisited()The date and time of the user's last visit to the page.
icon()The icon associated with the page that was provided by the server.
userData()The user specific data that was stored with the history item.

Note: QWebHistoryItem objects are value based and explicitly shared.

See also QWebHistory, QWebPage::history(), and QWebHistoryInterface.


Member Function Documentation

QWebHistoryItem::QWebHistoryItem ( const QWebHistoryItem & other )

Constructs a history item from other.

QWebHistoryItem::~QWebHistoryItem ()

Destroys the history item.

QIcon QWebHistoryItem::icon () const

Returns the icon associated with the history item.

See also title(), url(), and lastVisited().

bool QWebHistoryItem::isValid () const

Returns whether this is a valid history item.

This function was introduced in Qt 4.5.

QDateTime QWebHistoryItem::lastVisited () const

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

See also title(), icon(), and url().

QUrl QWebHistoryItem::originalUrl () const

Returns the original URL associated with the history item.

See also url().

void QWebHistoryItem::setUserData ( const QVariant & userData )

Stores user specific data userData with the history item.

This function was introduced in Qt 4.5.

See also userData().

QString QWebHistoryItem::title () const

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

See also icon(), url(), and lastVisited().

QUrl QWebHistoryItem::url () const

Returns the URL associated with the history item.

See also originalUrl(), title(), and lastVisited().

QVariant QWebHistoryItem::userData () const

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

This function was introduced in Qt 4.5.

See also setUserData().

QWebHistoryItem & QWebHistoryItem::operator= ( const QWebHistoryItem & other )

Assigns the other history item to this.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.5.1