QHelpEngine Class
QHelpEngine 类提供了对帮助引擎内容和索引的访问。更多内容...
| 头文件: | #include <QHelpEngine> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Help) target_link_libraries(mytarget PRIVATE Qt6::Help) |
| qmake: | QT += help |
| 继承自: | QHelpEngineCore |
公共函数
| QHelpEngine(const QString &collectionFile, QObject *parent = nullptr) | |
| virtual | ~QHelpEngine() |
| QHelpContentModel * | contentModel() const |
| QHelpContentWidget * | contentWidget() |
| QHelpIndexModel * | indexModel() const |
| QHelpIndexWidget * | indexWidget() |
| QHelpSearchEngine * | searchEngine() |
成员函数文档
[explicit] QHelpEngine::QHelpEngine(const QString &collectionFile, QObject *parent = nullptr)
使用给定的parent 构建一个新的帮助引擎。该帮助引擎利用存储在collectionFile 中的信息来提供帮助。如果集合文件尚不存在,则会自动创建。
[virtual noexcept] QHelpEngine::~QHelpEngine()
销毁帮助引擎对象。
QHelpContentModel *QHelpEngine::contentModel() const
返回内容模型。
QHelpContentWidget *QHelpEngine::contentWidget()
返回内容小部件。
QHelpIndexModel *QHelpEngine::indexModel() const
返回索引模型。
QHelpIndexWidget *QHelpEngine::indexWidget()
返回索引控件。
QHelpSearchEngine *QHelpEngine::searchEngine()
返回默认搜索引擎。
© 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.