QHelpSearchQuery Class

QHelpSearchQuery 类包含字段名和相关搜索词。更多

Header: #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,并使用给定的fieldwordList 对其进行初始化。

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