[英]How to disable NextButton on TargetDirectory page
我正在使用Qt Installer Framework,我想在TargetDirectory页面上禁用NextButton。 我尝试用几种方法来编辑controlscript.qs,但似乎不起作用。 以下是其中之一
Controller.prototype.TargetDirectoryPageCallback = function()
{
var widget = gui.currentPageWidget();
if (widget != null)
{
widget.BackButton.setEnabled(false) ;
}
}
您应该用NextButton替换BackButton。 我认为会没事的。
编辑检查那些链接:
http://doc.qt.io/qtinstallerframework/noninteractive.html
http://doc.qt.io/qtinstallerframework/scripting-buttons.html
在您的回调中,尝试以下行:
buttons.NextButton.setEnabled(false)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.