QWebEngineHistoryItem Class
QWebEngineHistoryItem 类表示网络引擎页面历史记录中的一个项目。更多
Header: | #include <QWebEngineHistoryItem> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebEngineCore) target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore) |
qmake: | QT += webenginecore |
公共函数
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) |
另请参阅 QWebEngineHistory 和QWebEnginePage::history()。
成员函数文档
QWebEngineHistoryItem::QWebEngineHistoryItem(const QWebEngineHistoryItem &other)
从other 创建一个历史项目。新项目和other 将共享数据,修改此项目或other 将同时修改两个实例。
[noexcept]
QWebEngineHistoryItem::~QWebEngineHistoryItem()
销毁历史项目。
QUrl QWebEngineHistoryItem::iconUrl() const
返回与历史项关联的图标的 URL。
另请参阅 url()、originalUrl() 和title()。
bool QWebEngineHistoryItem::isValid() const
返回该历史项目是否有效。
QDateTime QWebEngineHistoryItem::lastVisited() const
返回项目相关页面最后一次被访问的日期和时间。
QUrl QWebEngineHistoryItem::originalUrl() const
返回与历史项目相关的原始 URL。
另请参阅 url()。
[noexcept]
void QWebEngineHistoryItem::swap(QWebEngineHistoryItem &other)
将历史项目与other 项目对调。
QString QWebEngineHistoryItem::title() const
返回与历史项目相关的页面标题。
另请参阅 url() 和lastVisited()。
QUrl QWebEngineHistoryItem::url() const
返回与历史项目相关的 URL。
另请参阅 originalUrl()、title() 和lastVisited()。
QWebEngineHistoryItem &QWebEngineHistoryItem::operator=(const QWebEngineHistoryItem &other)
将other 历史项目分配给此项目。此项目和other 将共享数据,修改此项目或other 将同时修改这两个实例。
© 2025 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.