QWebEngineHistoryItem Class

QWebEngineHistoryItem クラスは、ウェブエンジンページの履歴の 1 つの項目を表します。詳細...

ヘッダー #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

その項目に関連付けられたページが最後に閲覧された日時を返します。

title() およびurl()も参照 ください。

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.