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 | indexCreated() |
| void | indexCreationStarted() |
メンバー関数のドキュメント
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 が空でない場合、一致したキーワードのみがインデックスリストに残されます。 次のステップでは、最適な一致が決定され、そのモデルインデックスが返されます。ワイルドカード式を指定する場合、filter という文字列を使用して最適な一致が検索されます。
QHelpEngineCore *QHelpIndexModel::helpEngine() const
このモデルを管理する関連するヘルプエンジンを返します。
[signal] void QHelpIndexModel::indexCreated()
このシグナルは、インデックスが作成されたときに発信されます。
[signal] void QHelpIndexModel::indexCreationStarted()
このシグナルは、新しいインデックスの作成が開始されたときに発せられます。この時点から、indexCreated() シグナルが発せられるまで、現在のインデックスは無効となります。
isCreatingIndex()も参照してください 。
bool QHelpIndexModel::isCreatingIndex() const
インデックスが現在構築済みの場合は true を返し、そうでない場合は false を返します。
© 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.