Qt Installer Framework脚本API

Scripting API

脚本API

The following table summarizes the global JavaScript objects that you can use in controller and component scripts.

下表总结了可以在控制器和组件脚本中使用的全局JavaScript对象。

QDesktopServices

Provides methods for accessing common desktop services

提供访问常见桌面服务的方法

QFileDialog

Provides a dialog that allows users to select files or directories

提供一个对话框,允许用户选择文件或目录

QInstaller

Provides access to the installer status and pages from Qt Script

提供从Qt脚本访问安装程序状态和页面的功能

QMessageBox

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

提供一个模态对话框,用于通知用户或向用户提问并接收答案

QSettings

Provides enums for accessing QSettings format in Windows

提供用于在Windows中访问QSettings格式的枚举

buttons

Provides buttons that can be used on installer pages

提供可在安装程序页面上使用的按钮

component

Represents the current component that the Qt Script belongs to

表示Qt脚本所属的当前组件

console

Provides methods for logging and debugging

提供日志记录和调试方法

gui

Enables interaction with the installer UI

启用与安装程序UI的交互

installer

Provides access to core functionality of the Qt Installer Framework

提供对Qt安装程序框架核心功能的访问

print

Provides compatibility with QtScript

提供与QtScript的兼容性

systemInfo

Provides information about the operating system

提供有关操作系统的信息

ToolsC++ API

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值