| def icon () |
| def isValid () |
| def lastVisited () |
| def operator= (other) |
| def originalUrl () |
| def setUserData (userData) |
| def title () |
| def url () |
| def userData () |
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.
Function Description QWebHistoryItem.title() The page title. QWebHistoryItem.url() The location of the page. QWebHistoryItem.originalUrl() The URL used to access the page. QWebHistoryItem.lastVisited() The date and time of the user’s last visit to the page. QWebHistoryItem.icon() The icon associated with the page that was provided by the server. QWebHistoryItem.userData() The user specific data that was stored with the history item. Note
QWebHistoryItem objects are value based, but explicitly shared . Changing a QWebHistoryItem instance by calling QWebHistoryItem.setUserData() will change all copies of that instance.
See also
QWebHistory QWebPage.history() QWebHistoryInterface
| Parameter: | other – 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.
| Return type: | QIcon |
|---|
Returns the icon associated with the history item.
| Return type: | bool |
|---|
Returns whether this is a valid history item.
| Return type: | QDateTime |
|---|
Returns the date and time that the page associated with the item was last visited.
| Parameter: | other – QWebHistoryItem |
|---|---|
| Return type: | QWebHistoryItem |
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.
| Return type: | QUrl |
|---|
Returns the original URL associated with the history item.
See also
| Parameter: | userData – QVariant |
|---|
Stores user specific data userData with the history item.
Note
All copies of this item will be modified.
See also
| Return type: | QString |
|---|
Returns the title of the page associated with the history item.
| Return type: | QUrl |
|---|
Returns the URL associated with the history item.
| Return type: | QVariant |
|---|
Returns the user specific data that was stored with the history item.
See also