QHelpIndexModel Class

QHelpIndexModel クラスは、ビューにインデックスキーワードを供給するモデルを提供します。さらに...

ヘッダ #include <QHelpIndexModel>
CMake: find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
qmake: QT += help
継承: QStringListModel

パブリック関数

void createIndex(const QString &filter)
(since 6.8) void createIndexForCurrentFilter()
QModelIndex filter(const QString &filter, const QString &wildcard = {})
QHelpEngineCore *helpEngine() const
bool isCreatingIndex() const

シグナル

詳細説明

メンバー関数ドキュメント

void QHelpIndexModel::createIndex(const QString &filter)

指定されたカスタムfilter 名のキーワードをヘルプシステムに問い合わせることで、新しいインデックスを作成します。

[since 6.8] void QHelpIndexModel::createIndexForCurrentFilter()

現在のフィルタのキーワードをヘルプシステムに問い合わせることによって、新しいインデックスを作成します。

この関数は Qt 6.8 で導入されました。

QModelIndex QHelpIndexModel::filter(const QString &filter, const QString &wildcard = {})

インデックスをフィルタリングし、最もよくマッチするキーワードのモデルインデックスを返す。最初のステップでは、filter を含むキーワードのみがモデルのインデックスリストに残される。同様に、wildcard が空でなければ、マッチしたキーワードのみがインデックスリストに残される。2番目のステップでは、ベストマッチが決定され、そのインデックスモデルが返されます。ワイルドカード表現を指定した場合、filter の文字列がベストマッチの検索に使用されます。

QHelpEngineCore *QHelpIndexModel::helpEngine() const

このモデルを管理する関連ヘルプエンジンを返します。

[signal] void QHelpIndexModel::indexCreated()

このシグナルは、インデックスが作成されたときに発せられる。

[signal] void QHelpIndexModel::indexCreationStarted()

このシグナルは、新しいインデックスの作成が開始されたときに発せられる。この時点から、シグナルindexCreated() が発せられるまで、現在のインデックスは無効である。

isCreatingIndex()も参照のこと

bool QHelpIndexModel::isCreatingIndex() const

インデックスが現在構築されていればtrueを返し、そうでなければfalseを返す。

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