QHelpContentWidget Class
QHelpContentWidget 类提供了一个树形视图,用于显示帮助内容模型项。更多
Header: | #include <QHelpContentWidget> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Help) target_link_libraries(mytarget PRIVATE Qt6::Help) |
qmake: | QT += help |
继承: | QTreeView |
公共函数
QModelIndex | indexOf(const QUrl &link) |
信号
void | linkActivated(const QUrl &link) |
成员函数文档
QModelIndex QHelpContentWidget::indexOf(const QUrl &link)
返回link 的内容项索引。如果不存在这样的内容项,则返回无效索引。
[signal]
void QHelpContentWidget::linkActivated(const QUrl &link)
当一个内容项被激活并应显示其相关的link 时,就会发出该信号。
© 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.