QHelpSearchResult Class
QHelpSearchResult クラスは、検索結果に関連するデータを提供します。詳細...
| ヘッダー: | #include <QHelpSearchResult> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Help) target_link_libraries(mytarget PRIVATE Qt6::Help) |
| qmake: | QT += help |
パブリック関数
| QHelpSearchResult() | |
| QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet) | |
| QHelpSearchResult(const QHelpSearchResult &other) | |
| ~QHelpSearchResult() | |
| QString | snippet() const |
| QString | title() const |
| QUrl | url() const |
| QHelpSearchResult & | operator=(const QHelpSearchResult &other) |
詳細な説明
QHelpSearchResult オブジェクトは、単一の検索結果を記述するデータオブジェクトです。検索結果オブジェクトのベクトルは、QHelpSearchEngine::searchResults() によって返されます。検索結果の記述には、検索入力と一致したドキュメントのタイトルと URL が含まれます。また、検索入力と最もよく一致するドキュメントコンテンツの抜粋も含まれます。
QHelpSearchEngineも参照してください 。
メンバ関数のドキュメント
QHelpSearchResult::QHelpSearchResult()
新しい空の QHelpSearchResult を作成します。
QHelpSearchResult::QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet)
url 、title 、およびsnippet を検索結果の説明として含む検索結果を生成します。
QHelpSearchResult::QHelpSearchResult(const QHelpSearchResult &other)
other のコピーを作成します。
[noexcept] QHelpSearchResult::~QHelpSearchResult()
検索結果を削除します。
QString QHelpSearchResult::snippet() const
検索結果の検索語句を含むドキュメントのスニペットを返します。
QString QHelpSearchResult::title() const
検索結果のドキュメントタイトルを返します。
QUrl QHelpSearchResult::url() const
検索結果のドキュメントURLを返します。
QHelpSearchResult &QHelpSearchResult::operator=(const QHelpSearchResult &other)
この検索結果にother を割り当て、この検索結果への参照を返します。
© 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.