0

我正在使用 Qt Installer Framework,我想在 TargetDirectory 页面上禁用 NextButton。我尝试用几种方法编辑 controlscript.qs,但它似乎不起作用。以下是其中之一

Controller.prototype.TargetDirectoryPageCallback = function()
{
    var widget = gui.currentPageWidget();
    if (widget != null) 
    {
        widget.BackButton.setEnabled(false) ;
    }
}
4

1 回答 1

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)
于 2017-05-12T07:29:10.167 回答