Scripting API

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

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

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

buttons

Provides buttons that can be used on installer pages

component

Represents the current component that the Qt Script belongs to

console

Provides methods for logging and debugging

gui

Enables interaction with the installer UI

installer

Provides access to core functionality of the Qt Installer Framework

print

Provides compatibility with QtScript

systemInfo

Provides information about the operating system

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