En esta página

QWebEngineHistoryItem Class

La clase QWebEngineHistoryItem representa un ítem en el historial de una página del motor web. Más...

Cabecera: #include <QWebEngineHistoryItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore

Funciones públicas

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

Descripción detallada

Cada elemento del historial del motor web representa una entrada en la pila del historial de una página web, que contiene información sobre la página, su ubicación y el momento en que se visitó por última vez.

Véase también QWebEngineHistory y QWebEnginePage::history().

Documentación de las funciones miembro

QWebEngineHistoryItem::QWebEngineHistoryItem(const QWebEngineHistoryItem &other)

Construye un elemento histórico a partir de other. El nuevo elemento y other compartirán sus datos, y la modificación de este elemento o de other modificará ambas instancias.

[noexcept] QWebEngineHistoryItem::~QWebEngineHistoryItem()

Destruye el elemento del historial.

QUrl QWebEngineHistoryItem::iconUrl() const

Devuelve la URL del icono asociado al elemento del historial.

Véase también url(), originalUrl() y title().

bool QWebEngineHistoryItem::isValid() const

Devuelve si se trata de un elemento histórico válido.

QDateTime QWebEngineHistoryItem::lastVisited() const

Devuelve la fecha y hora en que se visitó por última vez la página asociada al elemento.

Véase también title() y url().

QUrl QWebEngineHistoryItem::originalUrl() const

Devuelve la URL original asociada al elemento del historial.

Véase también url().

[noexcept] void QWebEngineHistoryItem::swap(QWebEngineHistoryItem &other)

Intercambia el elemento del historial con el elemento other.

QString QWebEngineHistoryItem::title() const

Devuelve el título de la página asociada al elemento del historial.

Véase también url() y lastVisited().

QUrl QWebEngineHistoryItem::url() const

Devuelve la URL asociada al elemento del historial.

Véase también originalUrl(), title() y lastVisited().

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

Asigna el elemento del historial other a este. Este elemento y other compartirán sus datos, y la modificación de este elemento o de other modificará ambas instancias.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.