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

シグナル

詳細説明

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

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

index で参照されているアイテムについて、与えられたrole の下に保存されているデータを返します。

[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 の下にある行の数を返します。

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