QHelpIndexWidget Class

QHelpIndexWidget 类提供了一个列表视图,显示QHelpIndexModel... 更多...

Header: #include <QHelpIndexWidget>
CMake: find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
qmake: QT += help
继承: QListView

公共插槽

void activateCurrentItem()
void filterIndices(const QString &filter, const QString &wildcard = {})

信号

void documentActivated(const QHelpLink &document, const QString &keyword)
void documentsActivated(const QList<QHelpLink> &documents, const QString &keyword)

详细说明

成员函数文档

[slot] void QHelpIndexWidget::activateCurrentItem()

激活当前项目,最终会发出 linkActivated() 或 linksActivated() 信号。

[signal] void QHelpIndexWidget::documentActivated(const QHelpLink &document, const QString &keyword)

当一个项目被激活,其相关的document 应被显示时,就会发出该信号。要知道该链接属于哪里,keyword 将作为第二个参数给出。

[signal] void QHelpIndexWidget::documentsActivated(const QList<QHelpLink> &documents, const QString &keyword)

当代表keyword 的项目被激活,且该项目关联了一个以上的文档时,就会发出该信号。documents 包含文档标题及其 URL。

[slot] void QHelpIndexWidget::filterIndices(const QString &filter, const QString &wildcard = {})

根据filterwildcard 过滤索引。匹配度最高的项目将被设为当前项目。

另请参阅 QHelpIndexModel::filter() 。

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