[英]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.