QHelpEngine Class

QHelpEngine 类提供对帮助引擎内容和索引的访问。更多

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

返回内容 widget。

QHelpIndexModel *QHelpEngine::indexModel() const

返回索引模型。

QHelpIndexWidget *QHelpEngine::indexWidget()

返回索引部件。

QHelpSearchEngine *QHelpEngine::searchEngine()

返回默认搜索引擎。

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