I am trying to create an Introduction Page different from the preexisting one that Qt installer provides.
I created an ui file, disabled the Introduction page visibility in the control script and in the installscript constructor i created a new page and the reset the visibility to true. I followed the documentation, to the best of my ability and applied the insctructions this thread provided: QT Installer Framework: Add new wizard page before Introduction page The installer works but starts with the Target Directory Page straight away.
//controllerscript.qs
function Controller()
{
installer.setDefaultPageVisible(QInstaller.Introduction, 0);
installer.setDefaultPageVisible(QInstaller.ComponentSelection, 0);
installer.setDefaultPageVisible(QInstaller.StartMenuSelection, 0);
}
//installscript.qs
function Component()
{
installer.addWizardPage(component, "PreIntroPage", QInstaller.Introduction);
if (installer.addWizardPage(component, "PreIntroPage", QInstaller.Introduction)) {
var widget =gui.pageWidgetByObjectName("DynamicPreIntroPage");
if (widget != null) {
...
}
}
}
The ui file's name is 'preintropage.ui' and i added it to the package.xml. The controllerscript is in the config.xml. This is supposed to create a new page before the introduction Page. Since i wanted to redesign the preexisting Introduction Page, add a picture(not only the logo), the callbackfunction, which worked, was not enough.
Is there something wrong with what I did? and is there another way to customize the Intro Page that is not limited to the text shown.
I am using the Qt installer Framework 3.1.0.