PySide6.QtHelp.QCompressedHelpInfo¶
- class QCompressedHelpInfo¶
QCompressedHelpInfo
类提供了对压缩帮助文件详细信息的访问。更多…概要¶
方法¶
def
__init__()
def
component()
def
isNull()
def
namespaceName()
def
swap()
def
version()
静态函数¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
可以通过调用
fromCompressedHelpFile()
静态方法来获取压缩帮助文件的详细信息,提供压缩帮助文件的路径。该类提供了对压缩帮助文件的各种信息的访问。与给定压缩帮助文件关联的命名空间是
namespaceName()
,关联的组件名称是component()
,而version()
提供了版本信息。另请参阅
- __init__()¶
构造关于压缩帮助文件的空信息。
- __init__(other)
- Parameters:
其他 –
QCompressedHelpInfo
构造
other
的副本。- component()¶
- Return type:
字符串
返回压缩帮助文件的组件。
- static fromCompressedHelpFile(documentationFileName)¶
- Parameters:
documentationFileName – str
- Return type:
返回现有qch文件的
documentationFileName
的QCompressedHelpInfo
实例。- isNull()¶
- Return type:
布尔
如果信息无效,则返回
true
,否则返回false
。- namespaceName()¶
- Return type:
字符串
返回压缩帮助文件的命名空间名称。
- swap(other)¶
- Parameters:
其他 –
QCompressedHelpInfo
将此压缩帮助文件与
other
压缩帮助文件交换。此操作非常快速且永远不会失败。- version()¶
- Return type:
返回压缩帮助文件的版本。