Obsolete Members for QHelpEngineCore

QHelpEngineCore 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。

属性

公共功能

(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应使用 () 代替。

Returns a list of filter attributes for the different filter sections defined in the Qt compressed help file with the given namespacenamespaceName

[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()。

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