问题描述
Qt 安装程序框架通过一组页面指导安装。在它们的底部,它显示了导航按钮,即 Next
、Quit
。
如何隐藏这些按钮?
我试图将以下内容放在控制脚本上
function Controller()
{
console.log("From function Controller")
}
Controller.prototype.TargetDirectoryPageCallback = function()
{
var widget = gui.currentPageWidget();
if (widget != null)
{
widget.findChild("NextButton").visible = false;
}
console.log("From Controller.prototype.TargetDirectoryPageCallback")
}
然后从 Windows 终端我像运行它
installer.exe -d
得到
Critical: TypeError: Value is null and cannot be converted to an object
关于隐藏按钮的文档在哪里?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)