gui QML Type | Qt Installer Framework Manual

Qt Installer Framework Manual

# gui QML Type

Enables interaction with the installer UI. More...

Import Statement: | import scripting .

- List of all members, including inherited members

## Signals

- finishButtonClicked()
- gotRestarted()
- interrupted()
- languageChanged()
- settingsButtonClicked()

## Methods

- void cancelButtonClicked()
- void clickButton(int wizardButton, 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 setModified(boolean value)
- void setSettingsButtonEnabled(boolean enable)
- void showFinishedPage()
- void showSettingsButton(boolean show)

## Detailed Description

## Signal Documentation

finishButtonClicked()

This signal is emitted when the Finish button is clicked.

gotRestarted()

This signal is emitted when the installer is restarted.

interrupted()

This signal is emitted when the end user chooses to cancel the installation and quit the installer.

languageChanged()

This signal is emitted when the application language changes.

settingsButtonClicked()

This signal is emitted when the Settings button is clicked.

## Method Documentation

void cancelButtonClicked()

Asks end users whether they want to cancel the operation and quit the installer, uninstaller, or package manager.

void clickButton(int wizardButton, int delayInMs)

Automatically clicks the button specified by wizardButton after a delay in milliseconds specified by delayInMs.

object currentPageWidget()

Returns the current wizard page.

string defaultButtonText(int wizardButton)

Returns the default text for the button specified by wizardButton.

object findChild(object parent, string objectName)

Returns the first descendant of parent that has objectName as name.

See also QObject::findChild.

object[] findChildren(object parent, string objectName)

Returns all descendants of parent that have objectName as name.

See also QObject::findChildren.

boolean isButtonEnabled(int wizardButton)

Returns `true` if the button specified by wizardButton is enabled. Returns `false` if a button of the specified type is not found.

object pageById(int id)

Returns the installer page specified by id. The values of `id` for the available installer pages are provided by QInstaller::WizardPage.

object pageByObjectName(string name)

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.

object pageWidgetByObjectName(string name)

For dynamic pages, returns the widget specified by name read from the UI file.

void reject()

Quits the installer, uninstaller, or package manager.

void rejectWithoutPrompt()

Quits the installer, uninstaller, or package manager without asking end users for confirmation.

void setModified(boolean value)

void setSettingsButtonEnabled(boolean enable)

Enables the Settings button by setting enable to `true`.

void showFinishedPage()

Shows the next page.

void showSettingsButton(boolean show)

Shows the Settings button if show is `true`.