diff options
Diffstat (limited to 'doc/installerfw.qdoc')
-rw-r--r-- | doc/installerfw.qdoc | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/doc/installerfw.qdoc b/doc/installerfw.qdoc index 09c7e575a..ec3c3781b 100644 --- a/doc/installerfw.qdoc +++ b/doc/installerfw.qdoc @@ -430,20 +430,13 @@ component.userInterface( "MyPage" ).checkbox.checked = true; \endcode - \section2 Using Control Scripts to Add Pages - - To register a custom page, use the installer::addWizardPage() method - and the object name set in the UI file (for example, \c "MyPage"). Then - call the \c{Dynamic${ObjectName}Callback()} function (for example, - \c {DynamicMyPageCallback()}): + You can also have a callback for the page that is added. To access it, + use the object name set in the UI file (for example, \c "MyPage"). Then + create the \c{Dynamic${ObjectName}Callback} function (for example, + \c {DynamicMyPageCallback}): \code - function Controller() - { - installer.addWizardPage(component, "MyPage", QInstaller.TargetDirectory) - } - - Controller.prototype.DynamicMyPageCallback() + Component.prototype.DynamicMyPageCallback = function() { var page = gui.pageWidgetByObjectName("DynamicMyPage"); page.myButton.click, |