Created
October 31, 2017 17:27
-
-
Save agarny/b952f62c1219a5188933c800ea40cb13 to your computer and use it in GitHub Desktop.
Script to install Qt from the command line using something like: ./qt-installer --platform minimal --script installQt.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Controller() { | |
installer.autoRejectMessageBoxes(); | |
installer.installationFinished.connect(function() { | |
gui.clickButton(buttons.NextButton); | |
}); | |
} | |
Controller.prototype.WelcomePageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.CredentialsPageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.IntroductionPageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.TargetDirectoryPageCallback = function() { | |
// gui.currentPageWidget().TargetDirectoryLineEdit.setText("/where/to/install/Qt"); | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.ComponentSelectionPageCallback = function() { | |
var widget = gui.currentPageWidget(); | |
widget.deselectAll(); | |
// widget.selectComponent("qt.592.win64_msvc2015_64"); | |
// widget.selectComponent("qt.592.gcc_64"); | |
// widget.selectComponent("qt.592.clang_64"); | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.LicenseAgreementPageCallback = function() { | |
gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true); | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.StartMenuDirectoryPageCallback = function() { | |
// gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.ReadyForInstallationPageCallback = function() { | |
gui.clickButton(buttons.NextButton); | |
} | |
Controller.prototype.FinishedPageCallback = function() { | |
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm; | |
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) | |
checkBoxForm.launchQtCreatorCheckBox.checked = false; | |
gui.clickButton(buttons.FinishButton); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment