What is type of gui.currentPageWidget() ?
Unsolved
General and Desktop
-
I looked these code from https://doc.qt.io/qtinstallerframework/noninteractive.html#writing-control-scripts
function Controller() { } Controller.prototype.IntroductionPageCallback = function() { var widget = gui.currentPageWidget(); // get the current wizard page if (widget != null) { widget.title = "New title."; // set the page title widget.MessageLabel.setText("New Message."); // set the welcome text } } Controller.prototype.TargetDirectoryPageCallback = function() { gui.clickButton(buttons.NextButton); // automatically click the Next button }
gui.currentPageWidget() Returns the current wizard page of object type.
I looked QWizard, QWizardpage document.
https://doc.qt.io/qt-5/qwizard.html
https://doc.qt.io/qt-5/qwizardpage.htmlbut there are not MessageLabel in documents.Where I find elements of gui.currentPageWidget() ?
-
@narae said in What is type of gui.currentPageWidget() ?:
Where I find elements of gui.currentPageWidget() ?
I know nothing about this(!), so it may be obvious to you/unhelpful, but a direct answer to your question seems to be on the same page you referenced, but at https://doc.qt.io/qtinstallerframework/noninteractive.html#introduction-page?