gui QML Type
Enables interaction with the installer UI. More...
Import Statement: | import scripting . |
Signals
- aboutApplicationClicked()
- finishButtonClicked()
- gotRestarted()
- interrupted()
- languageChanged()
- settingsButtonClicked()
Methods
- void cancelButtonClicked()
- void clickButton(int wizardButton, int delayInMs)
- void clickButton(string objectName, int delayInMs)
- object currentPageWidget()
- string defaultButtonText(int wizardButton)
- object findChild(object parent, string objectName)
- object[] findChildren(object parent, string objectName)
- boolean isButtonEnabled(int wizardButton)
- object pageById(int id)
- object pageByObjectName(string name)
- object pageWidgetByObjectName(string name)
- void reject()
- void rejectWithoutPrompt()
- void setSettingsButtonEnabled(boolean enable)
- void setTextItems(object control, stringlist items)
- void setWizardPageButtonText(int pageId, int buttonId, string buttonText)
- void showFinishedPage()
- void showSettingsButton(boolean show)
Detailed Description
Signal Documentation
This signal is emitted when the about application menu and dialog on macOS are shown.
This signal is emitted when the end user chooses to cancel the installation and quit the installer.
Method Documentation
Asks end users whether they want to cancel the operation and quit the installer, uninstaller, or package manager.
Automatically clicks the button specified by wizardButton after a delay in milliseconds specified by delayInMs.
Automatically clicks the button specified by objectName after a delay in milliseconds specified by delayInMs.
Returns the default text for the button specified by wizardButton.
Returns the first descendant of parent that has objectName as name.
See also QObject::findChild.
Returns all descendants of parent that have objectName as name.
See also QObject::findChildren.
Returns true
if the button specified by wizardButton is enabled. Returns false
if a button of the specified type is not found.
Returns the installer page specified by id. The values of id
for the available installer pages are provided by QInstaller::WizardPage.
Returns the installer page specified by name. The value of name
is the object name set in the UI file that defines the installer page.
For dynamic pages, returns the widget specified by name read from the UI file.
Quits the installer, uninstaller, or package manager without asking end users for confirmation.
Enables the Settings button by setting enable to true
.
Updates the model of control (which must be a QComboBox or QAbstractItemView) such that it contains the given items.
Sets buttonText for button specified by buttonId to a installer page pageId.
Note: In some pages, installer will change the button text when entering the page. In that case, you need to connect to entered()
-signal of the page to change the buttonText.
function Component() { var page = gui.pageByObjectName("FinishedPage"); page.entered.connect(Component.prototype.finishPageEntered); } Component.prototype.finishPageEntered = function() { gui.setWizardPageButtonText(QInstaller.InstallationFinished, buttons.CommitButton, "Commit"); }
Shows the Settings button if show is true
. This function overrides the visibility of the Settings button in all pages. Be careful when showing the settings button so that users cannot change network settings while downloading data in the background. Changing the settings will restart the wizard and switch back to the introduction page.