qtqt-installer

Qt installer framework hide or disable buttons


I want to hide or freeze the back button on a page ( to be more specific, License Agreement Page). I tried editing control.qs with few methods but it doesn't seem to work. Following is one of them

Controller.prototype.LicenseAgreementPageCallback = function()
{
    var widget = gui.currentPageWidget();
    if (widget != null) 
    {
        widget.BackButton.setVisible(false) ;
    }
}

Solution

  • I'm facing a similar problem trying to keep hide the Next button in the Target Directory page under certain conditions.

    But your case may be easier:

    1) You should use a global boolean variable set to true when you enter the License Agreement page.

    2) When you enter the previous page test the value of this global: if true then force a click on the next page (gui.click(buttons.NextButton);).

    Yes, it's a dirty workaround ;)