Qt Installer Framework Hide Buttons
-
wrote on 28 May 2015, 19:54 last edited by
Hi,
I'm trying to change the buttons on the pages of the Qt Installer Framekwork.
After the package updater is completed, there are two buttons available to the user: Restart and Finish. I would like to disable the Restart Button.
I have triedController.prototype.FinishedPageCallback = function () { var widget = gui.currentPageWidget(); widget.CommitButton.hide(); }
but it did not work.
What is the correct way to disable this button? -
wrote on 2 Jun 2015, 20:32 last edited by
I wanted to do the same thing because our clients were confused about the restart button - they thought it would restart the application, not the maintenance tool.
I didn't find a solution. The widget doesn't contain the buttons. There is a
buttons
variable you can use, but it contains the IDs of the buttons, not instances of something you can manipulate.What I ended up doing was automatically click finish in that dialog, automatically starting our application again:
Controller.prototype.FinishedPageCallback = function() { // Automatically press finish gui.clickButton(buttons.FinishButton); }
Greetings,
JeDi -
Hi,
I'm trying to change the buttons on the pages of the Qt Installer Framekwork.
After the package updater is completed, there are two buttons available to the user: Restart and Finish. I would like to disable the Restart Button.
I have triedController.prototype.FinishedPageCallback = function () { var widget = gui.currentPageWidget(); widget.CommitButton.hide(); }
but it did not work.
What is the correct way to disable this button?wrote on 25 Apr 2016, 16:42 last edited byI have the same problem ...
... there is a bug-report (https://bugreports.qt.io/browse/QTIFW-711)
... but no solution. -
wrote on 5 Oct 2020, 16:05 last edited by
これで行けました。
function Controller()
{}
Controller.prototype.FinishedPageCallback = function()
{
buttons.CommitButton.hide();
}