IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWebEngineHistoryItem Class

The QWebEngineHistoryItem class represents one item in the history of a web engine page.

This class was introduced in Qt 5.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWebEngineHistoryItem Class

  • Header: QWebEngineHistoryItem

  • Since: Qt 5.4

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)

    target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)

  • qmake: QT += webenginecore

Detailed Description

Each web engine history item represents an entry in the history stack of a web page, containing information about the page, its location, and the time when it was last visited.

See Also

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

Returns the URL of the icon associated with the history item.

See Also

See also url(), originalUrl(), title()

bool QWebEngineHistoryItem::isValid() const

Returns whether this is a valid history item.

QDateTime QWebEngineHistoryItem::lastVisited() const

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

See Also

See also title(), url()

QUrl QWebEngineHistoryItem::originalUrl() const

Returns the original URL associated with the history item.

See Also

See also url()

void QWebEngineHistoryItem::swap(QWebEngineHistoryItem &other)

Swaps the history item with the other item.

QString QWebEngineHistoryItem::title() const

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

See Also

See also url(), lastVisited()

QUrl QWebEngineHistoryItem::url() const

Returns the URL associated with the history item.

See Also

See also originalUrl(), title(), 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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+