QHelpContentModel Class

QHelpContentModel 클래스는 뷰에 콘텐츠를 제공하는 모델을 제공합니다. 더 보기...

Header: #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, columnparent 인덱스에 의해 지정된 모델에서 항목의 인덱스를 리턴합니다.

bool QHelpContentModel::isCreatingContents() const

콘텐츠가 현재 다시 작성된 경우 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

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