QCompressedHelpInfo Class

QCompressedHelpInfo 类提供了对压缩帮助文件详细信息的访问。更多

头文件: #include <QCompressedHelpInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
qmake: QT += help

公共函数

QCompressedHelpInfo()
QCompressedHelpInfo(const QCompressedHelpInfo &other)
QCompressedHelpInfo(QCompressedHelpInfo &&other)
~QCompressedHelpInfo()
QString component() const
bool isNull() const
QString namespaceName() const
void swap(QCompressedHelpInfo &other)
QVersionNumber version() const
QCompressedHelpInfo &operator=(QCompressedHelpInfo &&other)
QCompressedHelpInfo &operator=(const QCompressedHelpInfo &other)

静态公共成员

QCompressedHelpInfo fromCompressedHelpFile(const QString &documentationFileName)

详细说明

通过调用fromCompressedHelpFile() 静态方法并提供压缩帮助文件的路径,可以获取压缩帮助文件的详细信息。

该类可访问有关压缩帮助文件的各种信息。与给定压缩帮助文件相关的命名空间是namespaceName(),相关的组件名称是component(),而version() 则提供版本信息。

另请参阅 QHelpFilterEngine

成员函数文档

QCompressedHelpInfo::QCompressedHelpInfo()

构造压缩帮助文件的空信息。

QCompressedHelpInfo::QCompressedHelpInfo(const QCompressedHelpInfo &other)

构造other 的副本。

QCompressedHelpInfo::QCompressedHelpInfo(QCompressedHelpInfo &&other)

移动-构建一个 QCompressedHelpInfo 实例,使其指向other 所指向的同一对象,这样它就包含了other 曾经包含的信息。

[noexcept] QCompressedHelpInfo::~QCompressedHelpInfo()

摧毁QCompressedHelpInfo.

QString QCompressedHelpInfo::component() const

返回压缩帮助文件的组件。

[static] QCompressedHelpInfo QCompressedHelpInfo::fromCompressedHelpFile(const QString &documentationFileName)

返回现有 qch 文件documentationFileNameQCompressedHelpInfo 实例。

bool QCompressedHelpInfo::isNull() const

如果信息无效,则返回true ,否则返回false

QString QCompressedHelpInfo::namespaceName() const

返回压缩帮助文件的命名空间名称。

[noexcept] void QCompressedHelpInfo::swap(QCompressedHelpInfo &other)

将压缩帮助文件other 与此压缩帮助文件互换。该操作速度非常快,而且从未出现过故障。

QVersionNumber QCompressedHelpInfo::version() const

返回压缩帮助文件的版本。

QCompressedHelpInfo &QCompressedHelpInfo::operator=(QCompressedHelpInfo &&other)

Move-assignsother 到此QCompressedHelpInfo 实例。

QCompressedHelpInfo &QCompressedHelpInfo::operator=(const QCompressedHelpInfo &other)

使该 QHelpCollectionDetails 成为other 的副本,因此两者完全相同,并返回对该 QHelpCollectionDetails 的引用。

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