0

I am using Qt Installer Framework, I want to disable NextButton on TargetDirectory page. I tried editing controlscript.qs with few methods but it doesn't seem to work. Following is one of them

Controller.prototype.TargetDirectoryPageCallback = function()
{
    var widget = gui.currentPageWidget();
    if (widget != null) 
    {
        widget.BackButton.setEnabled(false) ;
    }
}
Shuji
  • 624
  • 1
  • 8
  • 24

1 Answers1

1

You should to replace BackButton by NextButton. I think that it will be fine.

Edit Check those links :

http://doc.qt.io/qtinstallerframework/noninteractive.html

http://doc.qt.io/qtinstallerframework/scripting-buttons.html

Inside your callback, try this line :

buttons.NextButton.setEnabled(false)
John Smith
  • 133
  • 2
  • 12