이 페이지에서

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