QHelpContentModel Class
QHelpContentModel クラスは、ビューにコンテンツを提供するモデルを提供します。詳細...
| ヘッダー: | #include <QHelpContentModel> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Help) target_link_libraries(mytarget PRIVATE Qt6::Help) |
| qmake: | QT += help |
| 継承元: | QAbstractItemModel |
パブリック関数
| virtual | ~QHelpContentModel() override |
| QHelpContentItem * | contentItemAt(const QModelIndex &index) const |
| void | createContents(const QString &filter) |
(since 6.8) void | createContentsForCurrentFilter() |
| bool | isCreatingContents() const |
再実装されたパブリック関数
| virtual int | columnCount(const QModelIndex &parent = {}) const override |
| virtual QVariant | data(const QModelIndex &index, int role) const override |
| virtual QModelIndex | index(int row, int column, const QModelIndex &parent = {}) const override |
| virtual QModelIndex | parent(const QModelIndex &index) const override |
| virtual int | rowCount(const QModelIndex &parent = {}) const override |
シグナル
| void | contentsCreated() |
| void | contentsCreationStarted() |
メンバー関数のドキュメント
[override virtual noexcept] QHelpContentModel::~QHelpContentModel()
ヘルプコンテンツモデルを破棄します。
[override virtual] int QHelpContentModel::columnCount(const QModelIndex &parent = {}) const
QAbstractItemModel::columnCount(const QModelIndex &parent) const を再実装します。
指定されたparent の下にある列の数を返します。現在は常に1を返します。
QHelpContentItem *QHelpContentModel::contentItemAt(const QModelIndex &index) const
モデルインデックスの位置index にあるヘルプコンテンツ項目を返します。
[signal] void QHelpContentModel::contentsCreated()
このシグナルは、コンテンツが作成されたときに発信されます。
[signal] void QHelpContentModel::contentsCreationStarted()
このシグナルは、コンテンツの作成が開始されたときに発せられます。この時点から、contentsCreated() シグナルが発せられるまでは、現在のコンテンツは無効となります。
isCreatingContents()も参照してください 。
void QHelpContentModel::createContents(const QString &filter)
「filter 」というカスタム名に対して指定されたコンテンツについて、ヘルプシステムにクエリを実行し、新しいコンテンツを作成します。
[since 6.8] void QHelpContentModel::createContentsForCurrentFilter()
現在のフィルタに指定されたコンテンツについて、ヘルプシステムにクエリを実行して新しいコンテンツを作成します。
この関数は Qt 6.8 で導入されました。
[override virtual] QVariant QHelpContentModel::data(const QModelIndex &index, int role) const
QAbstractItemModel::data(const QModelIndex &index, int role) const を再実装します。
role index で指定された位置に格納されているデータを、 が指す項目について返します。
[override virtual] QModelIndex QHelpContentModel::index(int row, int column, const QModelIndex &parent = {}) const
QAbstractItemModel::index(int row, int column, const QModelIndex &parent) const を再実装します。
指定されたrow 、column 、およびparent のインデックスによって指定される、モデル内の項目のインデックスを返します。
bool QHelpContentModel::isCreatingContents() const
コンテンツが現在再構築中の場合は true を返し、そうでない場合は false を返します。
[override virtual] QModelIndex QHelpContentModel::parent(const QModelIndex &index) const
QAbstractItemModel::parent(const QModelIndex &index) const を再実装します。
指定されたindex を持つモデル項目の親を返します。親が存在しない場合は、QModelIndex()を返します。
[override virtual] int QHelpContentModel::rowCount(const QModelIndex &parent = {}) const
QAbstractItemModel::rowCount(const QModelIndex &parent) const の再実装です。
指定された `parent` の直下に位置する行の数を返します。
© 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.