- Qt 5.5
- Qt WebEngine Widgets
- C++ Classes
- QWebEngineHistoryItem
- Qt 5.5.1 Reference Documentation

# QWebEngineHistoryItem Class

The QWebEngineHistoryItem class represents one item in the history of a QWebEnginePage More...

Header: | #include <QWebEngineHistoryItem>
qmake: | QT += webenginewidgets
Since: | Qt 5.4

- List of all members, including inherited members

## Public Functions

| QWebEngineHistoryItem(const QWebEngineHistoryItem & other)
| ~QWebEngineHistoryItem()
QUrl | iconUrl() const
bool | isValid() const
QDateTime | lastVisited() const
QUrl | originalUrl() const
QString | title() const
QUrl | url() const
QWebEngineHistoryItem & | operator=(const QWebEngineHistoryItem & other)

## Detailed Description

The QWebEngineHistoryItem class represents one item in the history of a QWebEnginePage

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

See also QWebEngineHistory and QWebEnginePage::history().

## Member Function Documentation

### QWebEngineHistoryItem::QWebEngineHistoryItem(const QWebEngineHistoryItem & other)

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.

### QWebEngineHistoryItem::~QWebEngineHistoryItem()

Destroys the history item.

### QUrl QWebEngineHistoryItem::iconUrl() const

### bool QWebEngineHistoryItem::isValid() const

Returns whether this is a valid history item.

### QDateTime QWebEngineHistoryItem::lastVisited() const

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

See also title() and url().

### QUrl QWebEngineHistoryItem::originalUrl() const

Returns the original URL associated with the history item.

See also url().

### QString QWebEngineHistoryItem::title() const

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

See also url() and lastVisited().

### QUrl QWebEngineHistoryItem::url() const

Returns the URL associated with the history item.

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

### QWebEngineHistoryItem & QWebEngineHistoryItem::operator=(const QWebEngineHistoryItem & other)

Assigns the other history item to this. This item and other will share their data, and modifying either this item or other will modify both instances.