Qt Installer Framework C++ API

C++ API

The C++ API documentation is written for developers who develop the Qt Installer Framework. It describes the internal API, so there is no compatibility promise. Further, the documentation is a work in progress and therefore parts of it are missing while other parts might be out of date.

C++API文档是为开发Qt安装程序框架的开发人员编写的。它描述了内部API,因此没有兼容性承诺。此外,文档尚在编写中,因此部分内容缺失,而其他部分可能已过时。

To create customized installers, use the Scripting API, instead. For more information, see Customizing Installers.

​若要创建自定义安装程序,请改用脚本API。有关详细信息,请参阅自定义安装程序。

Namespaces

命名空间

NamespaceDescription
QInstaller

Contains classes to implement the core functionality of the Qt Installer Framework and the installer UI.

包含实现Qt安装程序框架和安装程序UI核心功能的类。

KDUpdater

Contains classes to automatically detect updates to applications, to retrieve them from external repositories, and to install them. KDUpdater classes are a fork of KDAB's general KDUpdater module.

​包含用于自动检测应用程序更新、从外部存储库检索更新以及安装更新的类。KDUpdater类是KDAB通用KDUpdater模块的一个分支。

Lib7z

Contains classes to create and extract archives.

包含用于创建和提取存档的类。

QInstaller C++ Classes

QInstaller C++类

QInstaller::AbstractArchive

The base class for classes representing different archive files. It cannot be instantiated on its own but defines the API and provides common functionality when subclassed

表示不同存档文件的类的基类。它不能单独实例化,但定义了API,并在子类化时提供公共功能

QInstaller::AbstractFileTask

The base class of file related tasks

文件相关任务的基类

QInstaller::AbstractOperationTracer

Pure virtual base class for classes tracing starting and finishing of installer operations

用于跟踪安装程序操作开始和结束的类的纯虚拟基类

QInstaller::AliasFinder

Creates component alias objects from parsed alias source files, based on version and source priorities

根据版本和源优先级,从解析的别名源文件创建组件别名对象

QInstaller::AliasSource

Describes a source for alias declarations

描述别名声明的来源

QInstaller::ArchiveEntry

Struct represents an entry in an archive file, which can be for example a file or a directory

Struct表示存档文件中的条目,例如文件或目录

QInstaller::ArchiveFactory

Used to create archive objects based on the suffix of a given filename

用于根据给定文件名的后缀创建存档对象

QInstaller::AspectRatioLabel

Label for displaying a pixmap that maintains its original aspect ratio when resized

用于显示调整大小时保持其原始纵横比的像素图的标签

QInstaller::BinaryContent

Handles binary information embedded into executables

处理嵌入到可执行文件中的二进制信息

QInstaller::BinaryFormatEngine

The default file engine for accessing resource collections and resource files

用于访问资源集合和资源文件的默认文件引擎

QInstaller::BinaryFormatEngineHandler

Way to register resource collections and resource files

注册资源集合和资源文件的方法

QInstaller::BinaryLayout

Describes the binary content appended to a file

描述附加到文件的二进制内容

QInstaller::CacheableItem

Pure virtual class that defines an interface for a type suited for storage with the GenericDataCache class

纯虚拟类,为适合使用GenericDataCache类存储的类型定义接口

QInstaller::Component

Represents the current component

表示当前组件

QInstaller::Component::SortingPriorityGreaterThan

Sets a decreasing sorting priority for child components

为子组件设置递减排序优先级

QInstaller::Component::SortingPriorityLessThan

Sets an increasing sorting order for child components

为子组件设置递增的排序顺序

QInstaller::ComponentAlias

Represents an alias for single or multiple components

表示单个或多个组件的别名

QInstaller::ComponentModel

Holds a data model for visual representation of available components to install

保存数据模型,用于可视化表示要安装的可用组件

QInstaller::ComponentSelectionPage

Changes the checked state of components

更改组件的检查状态

QInstaller::ComponentSortFilterProxyModel

Support for sorting and filtering data passed between another model and a view

支持对在另一个模型和视图之间传递的数据进行排序和过滤

QInstaller::ConcurrentOperationRunner

Can be used to perform installer operations concurrently

可用于同时执行安装程序操作

QInstaller::ConcurrentOperationTracer

Prints trace output for starting of asynchronous operations

打印异步操作启动的跟踪输出

QInstaller::DirectoryGuard

RAII class to create a directory and delete it on destruction unless released

RAII类创建一个目录,并在销毁时删除它,除非释放

QInstaller::FileGuard

Basic access serialization for file paths

文件路径的基本访问序列化

QInstaller::FileGuardLocker

Locks a file path and releases it on destruction

锁定文件路径并在销毁时将其释放

QInstaller::FileTaskItem

Represents an item in a file task object

表示文件任务对象中的项

QInstaller::FileTaskResult

Represents the results of a file task

表示文件任务的结果

QInstaller::FinishedPage

Completes the installation wizard

完成安装向导

QInstaller::GenericDataCache

Template class for a checksum based storage of items on disk

用于在磁盘上基于校验和存储项目的模板类

QInstaller::IntroductionPage

Displays information about the product to install

显示有关要安装的产品的信息

QInstaller::Lib7zArchive

Represents an archive file handled with the LZMA software development kit

表示用LZMA软件开发工具包处理的存档文件

QInstaller::LibArchiveArchive

Represents an archive file handled with libarchive archive and compression library

表示使用libarchive存档和压缩库处理的存档文件

QInstaller::LibArchiveWrapper

Interface for interacting with archives handled using the libarchive archive and compression library

用于与使用libarchive存档和压缩库处理的存档进行交互的界面

QInstaller::LicenseAgreementPage

Presents a license agreement to the end users for acceptance

向最终用户提交许可协议以供接受

QInstaller::LoggingHandler

Methods for manipulating the application-wide verbosiveness and format of printed debug messages

操纵打印调试消息的应用程序范围内的措辞和格式的方法

QInstaller::MessageBoxHandler

Modal dialog for informing the user or asking the user a question and receiving an answer

用于通知用户或向用户提问并接收答案的模态对话框

QInstaller::Metadata

Represents fetched metadata from a repository

表示从存储库中获取的元数据

QInstaller::MetadataCache

Class for a checksum based storage of Metadata objects on disk

用于在磁盘上基于校验和存储元数据对象的类

QInstaller::OperationBlob

Textual representation of an operation that can be instantiated and executed by the Qt Installer Framework

Qt安装程序框架可以实例化和执行的操作的文本表示

QInstaller::OperationTracer

Prints trace output for starting of operations and automatically indicates finish on destruction

打印操作开始时的跟踪输出,并在销毁时自动指示完成

QInstaller::PackageManagerCore

The core functionality of the Qt Installer Framework

Qt安装程序框架的核心功能

QInstaller::PackageManagerGui

The core functionality for non-interactive installations

非交互式安装的核心功能

QInstaller::PackageManagerPage

Displays information about the product to install

显示有关要安装的产品的信息

QInstaller::PackageSource

Specifies a single package source

指定单个包源

QInstaller::PerformInstallationForm

Shows progress information about the installation state

显示有关安装状态的进度信息

QInstaller::PerformInstallationPage

Shows progress information about the installation state

显示有关安装状态的进度信息

QInstaller::ReadyForInstallationPage

Informs end users that the installation can begin

通知最终用户可以开始安装

QInstaller::Resource

Interface for wrapping a file as read only device

将文件包装为只读设备的接口

QInstaller::ResourceCollection

Abstraction that groups together a number of resources

将许多资源组合在一起的抽象

QInstaller::ResourceCollectionManager

Abstraction that groups together a number of resource collections

将多个资源集合组合在一起的抽象

QInstaller::RestartPage

Enables restarting the installer

允许重新启动安装程序

QInstaller::ScriptEngine

Used to prepare and run the component scripts

用于准备和运行组件脚本

QInstaller::StartMenuDirectoryPage

Specifies the program group for the product in the Windows Start menu

在Windows“开始”菜单中指定产品的程序组

QInstaller::SystemInfo

Provides information about the operating system

提供有关操作系统的信息

QInstaller::TargetDirectoryPage

Specifies the target directory for the installation

指定安装的目标目录

KDUpdater C++ Classes

KDUpdater C++类

GenericFactory

Implements a template-based generic factory

实现基于模板的通用工厂

KDUpdater::FileDownloader

The base class for file downloaders used in KDUpdater

KDUpdater中使用的文件下载器的基类

KDUpdater::FileDownloaderFactory

Acts as a factory for KDUpdater::FileDownloader

充当KDUpdater::FileDownloader的工厂

KDUpdater::FileDownloaderProxyFactory

Fine-grained proxy selection

细粒度代理选择

KDUpdater::HttpDownloader

Used to download files over FTP, HTTP, or HTTPS

用于通过FTP、HTTP或HTTPS下载文件

KDUpdater::LocalFileDownloader

Used to copy files from the local file system

用于从本地文件系统复制文件

KDUpdater::LocalPackage

Describes a single installed package in the application

描述应用程序中安装的单个软件包

KDUpdater::LocalPackageHub

Access to information about packages installed on the application side

访问应用程序端安装的软件包信息

KDUpdater::ResourceFileDownloader

Can be used to download resource files

可用于下载资源文件

KDUpdater::Task

The base class for all tasks in KDUpdater

KDUpdater中所有任务的基类

KDUpdater::Update

Represents a single update

表示单个更新

KDUpdater::UpdateFinder

UpdaterFinder class finds updates applicable for installed packages

UpdaterFinder类查找适用于已安装软件包的更新

KDUpdater::UpdateOperation

Abstract base class for update operations

更新操作的抽象基类

KDUpdater::UpdateOperationFactory

Used to create update operations based on their name

用于根据其名称创建更新操作

Lib7z C++ Classes

Lib7z C++类

Lib7z::ExtractCallback

Provides a callback for archive extraction

为存档提取提供回调

Lib7z::PercentPrinter

Displays the archiving process

显示归档过程

Lib7z::SevenZipException

Class for lib7z exceptions

lib7z异常类

Scripting APIKnown Issues

© 2021 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. The Qt Company, Qt and their 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.

### 回答1: Qt Installer Framework 是一个用于创建跨平台安装程序的工具。它是由 Qt 公司开发的,可用于构建 Windows、macOS 和 Linux 上的安装程序。Qt Installer Framework 允许开发者创建自定义的安装界面,支持包括自动更新和卸载在内的高级功能,使得应用程序的安装和升级变得更加方便。此外,Qt Installer Framework 还提供了强大的脚本语言和插件系统,以便开发者可以轻松地添加自己的定制功能。 ### 回答2: Qt Installer Framework是一个开源的安装包框架,用于创建跨平台的安装程序。它是由Qt官方社区开发的,用于帮助开发人员轻松地制作各种类型的安装程序。 Qt Installer Framework具有很多强大的特性。首先,它支持主流操作系统,包括Windows、macOS和Linux。这使得开发人员可以使用相同的框架来创建针对不同平台的安装程序,极大地简化了开发和维护的工作。 其次,Qt Installer Framework提供了一个灵活的界面,开发人员可以轻松地定制安装程序的界面。他们可以选择添加自定义的图标、背景图像和品牌标志等来打造与自己应用程序一致的安装体验。 此外,Qt Installer Framework还支持自定义安装组件,开发人员可以将安装的内容分组到不同的组件中,根据用户需求进行选择性安装。这对于大型应用程序来说非常有用,因为用户可以根据自己的需求选择安装哪些组件,从而减少不必要的空间占用。 另一个重要的特性是Qt Installer Framework支持安装程序的自动升级。开发人员可以配置安装程序,使其能够检测并下载更新,并在用户同意的情况下自动升级程序。这可以确保用户始终使用最新版本的应用程序,提供更好的用户体验以及安全性。 综上所述,Qt Installer Framework是一个功能强大且易于使用的安装包框架,可以帮助开发人员轻松创建跨平台的安装程序。它的灵活性和可定制性使得开发人员可以根据自己的需求创建出符合用户期望的安装体验。 ### 回答3: Qt Installer Framework(简称QtIFW)是一个创建安装程序的开源工具集,用于在Windows、Mac和Linux等操作系统上安装Qt应用程序。 Qt Installer Framework提供了一个易于使用的图形界面,允许开发者自定义安装向导和界面。它支持各种高级功能,如自动更新和升级、安装前检查依赖项、注册表设置、缓存管理等。 Qt Installer Framework的核心概念是组件。开发者可以将应用程序划分为多个组件,并在安装时选择安装哪些组件。这样,用户可以自定义安装过程,只选择需要的功能和资源,减少安装空间和时间。 Qt Installer Framework还支持多语言安装,用户可以选择在安装过程中使用哪种语言,提供了灵活的国际化功能。 此外,Qt Installer Framework还支持数字签名验证和认证,确保安装程序的完整性和可信性。 对于开发者来说,Qt Installer Framework提供了灵活的定制选项,可以自定义安装界面和过程,满足特定需求。开发者可以通过简单的脚本语言,定义安装程序的行为。 总的来说,Qt Installer Framework是一个功能强大、易于使用的工具集,为开发者提供了创建跨平台安装程序的便利,提升了用户体验和应用程序的可用性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

꧁白杨树下꧂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值