QCompressedHelpInfo 类提供访问压缩帮助文件有关细节。 更多...
头: | #include <QCompressedHelpInfo> |
CMake: |
find_package(Qt6 COMPONENTS Help REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Help) |
qmake: | QT += help |
Since: | Qt 5.13 |
QCompressedHelpInfo (QCompressedHelpInfo && other ) | |
QCompressedHelpInfo (const QCompressedHelpInfo & other ) | |
QCompressedHelpInfo () | |
QCompressedHelpInfo & | operator= (QCompressedHelpInfo && other ) |
QCompressedHelpInfo & | operator= (const QCompressedHelpInfo & other ) |
~QCompressedHelpInfo () | |
QString | component () const |
bool | isNull () const |
QString | namespaceName () const |
void | swap (QCompressedHelpInfo & other ) |
QVersionNumber | version () const |
QCompressedHelpInfo | fromCompressedHelpFile (const QString & documentationFileName ) |
The detailed information about the compressed help file can be fetched by calling the fromCompressedHelpFile () static method, providing the path to the compressed help file.
The class provides access to various information about a compressed help file. The namespace associated with the given compressed help file is namespaceName (), the associated component name is component () 和 version () provides version information.
另请参阅 QHelpFilterEngine .
Move-constructs a QCompressedHelpInfo instance, making it point to the same object that other was pointing to, so that it contains the information the other used to contain.
构造副本为 other .
Constructs empty information about a compressed help file.
移动赋值 other 到此 QCompressedHelpInfo 实例。
Makes this QHelpCollectionDetails into a copy of other , so the two are identical, and returns a reference to this QHelpCollectionDetails.
销毁 QCompressedHelpInfo .
Returns the component of the compressed help file.
[static]
QCompressedHelpInfo
QCompressedHelpInfo::
fromCompressedHelpFile
(const
QString
&
documentationFileName
)
返回 QCompressedHelpInfo instance for the documentationFileName of the existing qch file.
返回
true
if the info is invalid, otherwise returns
false
.
Returns the namespace name of the compressed help file.
Swaps the compressed help file other with this compressed help file. This operation is very fast and never fails.
Returns the version of the compressed help file.