QHelpIndexModel Class

QHelpIndexModel 클래스는 뷰에 인덱스 키워드를 제공하는 모델을 제공합니다. 더 보기...

Header: #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

인덱스가 현재 구축되어 있으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

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