本页内容

QHelpSearchQuery Class

QHelpSearchQuery 类包含字段名称和相关的搜索词。更多内容...

头文件: #include <QHelpSearchQuery>
CMake: find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
qmake: QT += help
状态: 已弃用

该类已弃用。我们强烈建议不要在新代码中使用它。

公共函数

QHelpSearchQuery()
QHelpSearchQuery(QHelpSearchQuery::FieldName field, const QStringList &wordList)

详细说明

QHelpSearchQuery 类包含字段名称和相关的搜索词。根据字段的不同,搜索词可能会被拆分为多个独立的词,以便由搜索引擎进行不同的解析。

注意:该 类已被弃用,建议改用QString 。

另请参阅 QHelpSearchQueryWidget 。

成员函数文档

QHelpSearchQuery::QHelpSearchQuery()

创建一个新的空 QHelpSearchQuery 对象。

QHelpSearchQuery::QHelpSearchQuery(QHelpSearchQuery::FieldName field, const QStringList &wordList)

创建一个新的 QHelpSearchQuery 对象,并使用给定的field 和wordList 对其进行初始化。

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