QWebEngineHistoryModel Class

ウェブエンジンページの履歴を表すデータモデル。詳細...

ヘッダー #include <QWebEngineHistoryModel>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebEngineCore)
target_link_libraries(mytarget PRIVATE Qt6::WebEngineCore)
qmake: QT += webenginecore
以来:Qt 6.2
QML で WebEngineHistoryModel
継承: QAbstractListModel

パブリックな型

enum Roles { UrlRole, TitleRole, OffsetRole, IconUrlRole }

詳しい説明

QWebEngineHistoryModel 型はtitleurliconoffset の役割を公開します。titleurliconは、訪問したページのタイトル、URL、ファビコンを指定します。offsetは、現在のページ(0)に対するページの位置を指定します。正の数は、そのページが現在のページの後に訪問されたことを示し、負の数は、そのページが現在のページの前に訪問されたことを示します。

この型は作成できないが、QWebEngineHistory::itemsModel,QWebEngineHistory::backItemsModel,QWebEngineHistory::forwardItemsModel メソッドを使うことでアクセスできる。

QWebEngineHistoryも参照のこと

メンバ型ドキュメント

enum QWebEngineHistoryModel::Roles

この列挙型は、履歴データモデルがサポートする特定の役割を記述します。

定数説明
QWebEngineHistoryModel::UrlRoleQt::UserRole訪問したページのURL
QWebEngineHistoryModel::TitleRole257訪問したページのタイトル
QWebEngineHistoryModel::OffsetRole258現在のページに対するページのオフセット (0)
QWebEngineHistoryModel::IconUrlRole259訪問したページのファビコン

© 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.