Obsolete Members for QHelpEngineCore
QHelpEngineCore 类的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议在新代码中不要使用它们。
属性
(deprecated)currentFilter : QString
公共函数
(deprecated) bool | addCustomFilter(const QString &filterName, const QStringList &attributes) |
(deprecated) QString | currentFilter() const |
(deprecated) QStringList | customFilters() const |
(deprecated) QList<QUrl> | files(const QString namespaceName, const QStringList &filterAttributes, const QString &extensionFilter = {}) |
(deprecated) QList<QStringList> | filterAttributeSets(const QString &namespaceName) const |
(deprecated) QStringList | filterAttributes() const |
(deprecated) QStringList | filterAttributes(const QString &filterName) const |
(deprecated) bool | removeCustomFilter(const QString &filterName) |
(deprecated) void | setCurrentFilter(const QString &filterName) |
信号
(deprecated) void | currentFilterChanged(const QString &newFilter) |
(deprecated) void | readersAboutToBeInvalidated() |
属性文档
[deprecated] currentFilter : QString
此枚举已弃用。我们强烈建议不要在新代码中使用它。
该属性保存当前应用的自定义过滤器的名称。
QHelpFilterEngine::activeFilter应改用 () 代替。
设置此属性将把新的自定义过滤器永久保存到帮助集合文件中。若要设置自定义过滤器而不将其永久保存,请禁用“自动保存过滤器”模式。
访问函数:
| QString | currentFilter() const |
| void | setCurrentFilter(const QString &filterName) |
另请参阅 autoSaveFilter()。
成员函数文档
[deprecated] bool QHelpEngineCore::addCustomFilter(const QString &filterName, const QStringList &attributes)
此函数已弃用。我们强烈建议不要在新代码中使用它。
QHelpFilterEngine::setFilterData应改用 () 代替。
添加新的自定义过滤器filterName 。过滤器的属性由attributes 指定。如果该过滤器已存在,则其属性集将被替换。如果操作成功,该函数返回 true;否则返回 false。
另请参阅 customFilters() 和removeCustomFilter()。
[signal, deprecated] void QHelpEngineCore::currentFilterChanged(const QString &newFilter)
此函数已弃用。我们强烈建议不要在新代码中使用它。
QHelpFilterEngine::filterActivated应改用 () 代替。
当当前滤波器被更改为newFilter 时,会触发此信号。
[deprecated] QStringList QHelpEngineCore::customFilters() const
此函数已弃用。我们强烈建议不要在新代码中使用它。
QHelpFilterEngine::filters应改用 () 代替。
返回一个自定义过滤器列表。
另请参阅 addCustomFilter() 和removeCustomFilter()。
[deprecated] QList<QUrl> QHelpEngineCore::files(const QString namespaceName, const QStringList &filterAttributes, const QString &extensionFilter = {})
此函数已弃用。我们强烈建议在新代码中不要使用它。
应改用 files() 函数。
返回 Qt 压缩帮助文件namespaceName 中包含的文件列表。这些文件既可以通过filterAttributes 进行筛选,也可以通过其扩展名extensionFilter (例如 'html')进行筛选。
[deprecated] QList<QStringList> QHelpEngineCore::filterAttributeSets(const QString &namespaceName) const
此函数已弃用。我们强烈建议不要在新代码中使用它。
QHelpFilterEngine::filterData应改用 () 代替。
返回一个列表,其中包含在 Qt 压缩帮助文件中定义的、具有给定命名空间namespaceName 的不同过滤器部分的过滤器属性。
[deprecated] QStringList QHelpEngineCore::filterAttributes() const
此函数已弃用。我们强烈建议不要在新代码中使用它。
QHelpFilterEngine::availableComponents应改用 () 代替。
返回所有已定义过滤器属性的列表。
[deprecated] QStringList QHelpEngineCore::filterAttributes(const QString &filterName) const
此函数已弃用。我们强烈建议不要在新代码中使用它。
QHelpFilterEngine::filterData应改用 () 代替。
返回自定义过滤器filterName 所使用的过滤属性列表。
[signal, deprecated] void QHelpEngineCore::readersAboutToBeInvalidated()
此函数已弃用。我们强烈建议不要在新代码中使用它。
[deprecated] bool QHelpEngineCore::removeCustomFilter(const QString &filterName)
此函数已弃用。我们强烈建议不要在新的代码中使用它。
QHelpFilterEngine::removeFilter应改用 () 代替。
如果成功删除了过滤器filterName ,则返回 true,否则返回 false。
另请参阅 addCustomFilter() 和customFilters()。
© 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.