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)

urltitlesnippet を検索結果の説明として含む検索結果を構築する。

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 を割り当て、この検索結果への参照を返す。

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