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를 재구현합니다.
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` 아래에 있는 행의 수를 반환합니다.
© 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.