QWebHistoryItem Class Reference |
QWebHistoryItem ( const QWebHistoryItem & other ) | |
~QWebHistoryItem () | |
QIcon | icon () const |
bool | isValid () const |
QDateTime | lastVisited () const |
QUrl | originalUrl () const |
void | setUserData ( const QVariant & userData ) |
QString | title () const |
QUrl | url () const |
QVariant | userData () const |
QWebHistoryItem & | operator= ( const QWebHistoryItem & other ) |
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 |
---|---|
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, but explicitly shared. Changing a QWebHistoryItem instance by calling setUserData() will change all copies of that instance.
See also QWebHistory, QWebPage::history(), and QWebHistoryInterface.
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.
Destroys the history item.
Returns the icon associated with the history item.
See also title(), url(), and lastVisited().
Returns whether this is a valid history item.
This function was introduced in Qt 4.5.
Returns the date and time that the page associated with the item was last visited.
See also title(), icon(), and url().
Returns the original URL associated with the history item.
See also url().
Stores user specific data userData with the history item.
Note: All copies of this item will be modified.
This function was introduced in Qt 4.5.
See also userData().
Returns the title of the page associated with the history item.
See also icon(), url(), and lastVisited().
Returns the URL associated with the history item.
See also originalUrl(), title(), and lastVisited().
Returns the user specific data that was stored with the history item.
This function was introduced in Qt 4.5.
See also setUserData().
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.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6-snapshot | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com