<class name="QWizard" doc="/**
&lt;p&gt;The &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; class provides a framework for wizards.&lt;/p&gt;
&lt;p&gt;A wizard (also called an assistant on Mac OS X) is a special type of input dialog that consists of a sequence of pages. A wizard's purpose is to guide the user through a process step by step. Wizards are useful for complex or infrequent tasks that users may find difficult to learn.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; inherits &lt;a href=&quot;QDialog.html#QDialog(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; and represents a wizard. Each page is a &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt; (a &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; subclass). To create your own wizards, you can use these classes directly, or you can subclass them for more control.&lt;/p&gt;
&lt;p&gt;Topics:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#a-trivial-example&quot;&gt;A Trivial Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#wizard-look-and-feel&quot;&gt;Wizard Look and Feel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#elements-of-a-wizard-page&quot;&gt;Elements of a Wizard Page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#registering-and-using-fields&quot;&gt;Registering and Using Fields&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#creating-linear-wizards&quot;&gt;Creating Linear Wizards&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#creating-non-linear-wizards&quot;&gt;Creating Non-Linear Wizards&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;a-trivial-example&quot;&gt;&lt;/a&gt;
&lt;h3&gt;A Trivial Example&lt;/h3&gt;
&lt;p&gt;The following example illustrates how to create wizard pages and add them to a wizard. For more advanced examples, see Class Wizard&lt;/tt&gt; and License Wizard&lt;/tt&gt;.&lt;/p&gt;
&lt;pre&gt;    QWizardPage *createIntroPage()
    {
        QWizardPage *page = new QWizardPage;
        page-&amp;gt;setTitle(&amp;quot;Introduction&amp;quot;);

        QLabel *label = new QLabel(&amp;quot;This wizard will help you register your copy &amp;quot;
                                   &amp;quot;of Super Product Two.&amp;quot;);
        label-&amp;gt;setWordWrap(true);

        QVBoxLayout *layout = new QVBoxLayout;
        layout-&amp;gt;addWidget(label);
        page-&amp;gt;setLayout(layout);

        return page;
    }

    QWizardPage *createRegistrationPage()
    {
        ...
    }

    QWizardPage *createConclusionPage()
    {
        ...
    }

    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);

        QString translatorFileName = QLatin1String(&amp;quot;qt_&amp;quot;);
        translatorFileName += QLocale::system().name();
        QTranslator *translator = new QTranslator(&amp;amp;app);
        if (translator-&amp;gt;load(translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
            app.installTranslator(translator);

        QWizard wizard;
        wizard.addPage(createIntroPage());
        wizard.addPage(createRegistrationPage());
        wizard.addPage(createConclusionPage());

        wizard.setWindowTitle(&amp;quot;Trivial Wizard&amp;quot;);
        wizard.show();

        return app.exec();
    }&lt;/pre&gt;
&lt;a name=&quot;wizard-look-and-feel&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Wizard Look and Feel&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; supports four wizard looks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;AeroStyle&lt;/tt&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can explicitly set the look to use using &lt;a href=&quot;QWizard.html#setWizardStyle(com.trolltech.qt.gui.QWizard.WizardStyle)&quot;&gt;&lt;tt&gt;setWizardStyle&lt;/tt&gt;&lt;/a&gt; (e.g&amp;#x2e;, if you want the same look on all platforms).&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;th&gt;&lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;AeroStyle&lt;/tt&gt;&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-classic1.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-modern1.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-mac1.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-aero1.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-classic2.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-modern2.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-mac2.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-aero2.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;Note: &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;AeroStyle&lt;/tt&gt;&lt;/a&gt; has effect only on a Windows Vista system with alpha compositing enabled. &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; is used as a fallback when this condition is not met.&lt;/p&gt;
&lt;p&gt;In addition to the wizard style, there are several options that control the look and feel of the wizard. These can be set using &lt;a href=&quot;QWizard.html#setOption(com.trolltech.qt.gui.QWizard.WizardOption, boolean)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#setOptions(com.trolltech.qt.gui.QWizard.WizardOptions)&quot;&gt;&lt;tt&gt;setOptions&lt;/tt&gt;&lt;/a&gt;. For example, &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveHelpButton&lt;/tt&gt;&lt;/a&gt; makes &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; show a &lt;b&gt;Help&lt;/b&gt; button along with the other wizard buttons.&lt;/p&gt;
&lt;p&gt;You can even change the order of the wizard buttons to any arbitrary order using &lt;a href=&quot;QWizard.html#setButtonLayout(java.util.List&lt;com.trolltech.qt.gui.QWizard.WizardButton&gt;)&quot;&gt;&lt;tt&gt;setButtonLayout&lt;/tt&gt;&lt;/a&gt;, and you can add up to three custom buttons (e.g&amp;#x2e;, a &lt;b&gt;Print&lt;/b&gt; button) to the button row. This is achieved by calling &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt; with &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton2&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton3&lt;/tt&gt;&lt;/a&gt; to set up the button, and by enabling the &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton2&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton3&lt;/tt&gt;&lt;/a&gt; options. Whenever the user clicks a custom button, &lt;a href=&quot;QWizard.html#customButtonClicked(int)&quot;&gt;&lt;tt&gt;customButtonClicked&lt;/tt&gt;&lt;/a&gt; is emitted. For example:&lt;/p&gt;
&lt;pre&gt;            wizard()-&amp;gt;setButtonText(QWizard::CustomButton1, tr(&amp;quot;&amp;amp;Print&amp;quot;));
            wizard()-&amp;gt;setOption(QWizard::HaveCustomButton1, true);
            connect(wizard(), SIGNAL(customButtonClicked(int)),
                    this, SLOT(printButtonClicked()));&lt;/pre&gt;
&lt;a name=&quot;elements-of-a-wizard-page&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Elements of a Wizard Page&lt;/h3&gt;
&lt;p&gt;Wizards consist of a sequence of &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt;s. At any time, only one page is shown. A page has the following attributes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A title&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;A subTitle.&lt;/li&gt;
&lt;li&gt;A set of pixmaps, which may or may not be honored, depending on the wizard's style:&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;WatermarkPixmap&lt;/tt&gt;&lt;/a&gt; (used by &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;BannerPixmap&lt;/tt&gt;&lt;/a&gt; (used by &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;LogoPixmap&lt;/tt&gt;&lt;/a&gt; (used by &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;BackgroundPixmap&lt;/tt&gt;&lt;/a&gt; (used by &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The diagram belows showns how &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; renders these attributes, assuming they are all present and &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; is used:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-nonmacpage.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;When a subTitle is set, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; displays it in a header, in which case it also uses the &lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;BannerPixmap&lt;/tt&gt;&lt;/a&gt; and the &lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;LogoPixmap&lt;/tt&gt;&lt;/a&gt; to decorate the header. The &lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;WatermarkPixmap&lt;/tt&gt;&lt;/a&gt; is displayed on the left side, below the header. At the bottom, there is a row of buttons allowing the user to navigate through the pages.&lt;/p&gt;
&lt;p&gt;The page itself (the &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt; widget) occupies the area between the header, the watermark, and the button row. Typically, the page is a &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt; on which a &lt;a href=&quot;QGridLayout.html&quot;&gt;&lt;tt&gt;QGridLayout&lt;/tt&gt;&lt;/a&gt; is installed, with standard child widgets (&lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt;s, &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;s, etc.)&amp;#x2e;&lt;/p&gt;
&lt;p&gt;If the wizard's style is &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt;, the page looks radically different:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qtwizard-macpage.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;The watermark, banner, and logo pixmaps are ignored by the &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt;. If the &lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;BackgroundPixmap&lt;/tt&gt;&lt;/a&gt; is set, it is used as the background for the wizard; otherwise, a default &amp;quot;assistant&amp;quot; image is used.&lt;/p&gt;
&lt;p&gt;The title and subtitle are set by calling QWizardPage::setTitle() and QWizardPage::setSubTitle() on the individual pages. They may be plain text or HTML (see &lt;a href=&quot;QWizard.html#titleFormat()&quot;&gt;&lt;tt&gt;titleFormat&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWizard.html#subTitleFormat()&quot;&gt;&lt;tt&gt;subTitleFormat&lt;/tt&gt;&lt;/a&gt;). The pixmaps can be set globally for the entire wizard using &lt;a href=&quot;QWizard.html#setPixmap(com.trolltech.qt.gui.QWizard.WizardPixmap, com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt;, or on a per-page basis using QWizardPage::setPixmap().&lt;/p&gt;
&lt;a name=&quot;field-mechanism&quot;&gt;&lt;/a&gt;&lt;a name=&quot;registering-and-using-fields&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Registering and Using Fields&lt;/h3&gt;
&lt;p&gt;In many wizards, the contents of a page may affect the default values of the fields of a later page. To make it easy to communicate between pages, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; supports a &amp;quot;field&amp;quot; mechanism that allows you to register a field (e.g&amp;#x2e;, a &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;) on a page and to access its value from any page. It is also possible to specify mandatory fields (i.e&amp;#x2e;, fields that must be filled before the user can advance to the next page).&lt;/p&gt;
&lt;p&gt;To register a field, call QWizardPage::registerField() field. For example:&lt;/p&gt;
&lt;pre&gt;    ClassInfoPage::ClassInfoPage(QWidget *parent)
        : QWizardPage(parent)
    {
        ...
        classNameLabel = new QLabel(tr(&amp;quot;&amp;amp;Class name:&amp;quot;));
        classNameLineEdit = new QLineEdit;
        classNameLabel-&amp;gt;setBuddy(classNameLineEdit);

        baseClassLabel = new QLabel(tr(&amp;quot;B&amp;amp;ase class:&amp;quot;));
        baseClassLineEdit = new QLineEdit;
        baseClassLabel-&amp;gt;setBuddy(baseClassLineEdit);

        qobjectMacroCheckBox = new QCheckBox(tr(&amp;quot;Generate Q_OBJECT &amp;amp;macro&amp;quot;));

        registerField(&amp;quot;className*&amp;quot;, classNameLineEdit);
        registerField(&amp;quot;baseClass&amp;quot;, baseClassLineEdit);
        registerField(&amp;quot;qobjectMacro&amp;quot;, qobjectMacroCheckBox);
        ...
    }&lt;/pre&gt;
&lt;p&gt;The above code registers three fields, &lt;tt&gt;className&lt;/tt&gt;, &lt;tt&gt;baseClass&lt;/tt&gt;, and &lt;tt&gt;qobjectMacro&lt;/tt&gt;, which are associated with three child widgets. The asterisk (&lt;tt&gt;*&lt;/tt&gt;) next to &lt;tt&gt;className&lt;/tt&gt; denotes a mandatory field.&lt;/p&gt;
&lt;a name=&quot;initialize-page&quot;&gt;&lt;/a&gt;&lt;p&gt;The fields of any page are accessible from any other page. For example:&lt;/p&gt;
&lt;pre&gt;    void OutputFilesPage::initializePage()
    {
        QString className = field(&amp;quot;className&amp;quot;).toString();
        headerLineEdit-&amp;gt;setText(className.toLower() + &amp;quot;.h&amp;quot;);
        implementationLineEdit-&amp;gt;setText(className.toLower() + &amp;quot;.cpp&amp;quot;);
        outputDirLineEdit-&amp;gt;setText(QDir::convertSeparators(QDir::tempPath()));
    }&lt;/pre&gt;
&lt;p&gt;Here, we call QWizardPage::field() to access the contents of the &lt;tt&gt;className&lt;/tt&gt; field (which was defined in the &lt;tt&gt;ClassInfoPage&lt;/tt&gt;) and use it to initialize the &lt;tt&gt;OuputFilePage&lt;/tt&gt;. The field's contents is returned as a &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When we create a field using QWizardPage::registerField(), we pass a unique field name and a widget. We can also provide a Qt property name and a &amp;quot;changed&amp;quot; signal (a signal that is emitted when the property changes) as third and fourth arguments; however, this is not necessary for the most common Qt widgets, such as &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QCheckBox.html&quot;&gt;&lt;tt&gt;QCheckBox&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;, because &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; knows which properties to look for.&lt;/p&gt;
&lt;a name=&quot;mandatory-fields&quot;&gt;&lt;/a&gt;&lt;p&gt;If an asterisk (&lt;tt&gt;*&lt;/tt&gt;) is appended to the name when the property is registered, the field is a &lt;i&gt;mandatory field&lt;/i&gt;. When a page has mandatory fields, the &lt;b&gt;Next&lt;/b&gt; and/or &lt;b&gt;Finish&lt;/b&gt; buttons are enabled only when all mandatory fields are filled.&lt;/p&gt;
&lt;p&gt;To consider a field &amp;quot;filled&amp;quot;, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; simply checks that the field's current value doesn't equal the original value (the value it had when &lt;a href=&quot;QWizard.html#initializePage(int)&quot;&gt;&lt;tt&gt;initializePage&lt;/tt&gt;&lt;/a&gt; was called). For &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; also checks that hasAcceptableInput() returns true, to honor any validator or mask.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt;'s mandatory field mechanism is provided for convenience. A more powerful (but also more cumbersome) alternative is to reimplement QWizardPage::isComplete() and to emit the QWizardPage::completeChanged() signal whenever the page becomes complete or incomplete.&lt;/p&gt;
&lt;p&gt;The enabled/disabled state of the &lt;b&gt;Next&lt;/b&gt; and/or &lt;b&gt;Finish&lt;/b&gt; buttons is one way to perform validation on the user input. Another way is to reimplement &lt;a href=&quot;QWizard.html#validateCurrentPage()&quot;&gt;&lt;tt&gt;validateCurrentPage&lt;/tt&gt;&lt;/a&gt; (or QWizardPage::validatePage()) to perform some last-minute validation (and show an error message if the user has entered incomplete or invalid information). If the function returns true, the next page is shown (or the wizard finishes); otherwise, the current page stays up.&lt;/p&gt;
&lt;a name=&quot;creating-linear-wizards&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Creating Linear Wizards&lt;/h3&gt;
&lt;p&gt;Most wizards have a linear structure, with page 1 followed by page 2 and so on until the last page. The Class Wizard&lt;/tt&gt; example is such a wizard. With &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt;, linear wizards are created by instantiating the &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt;s and inserting them using &lt;a href=&quot;QWizard.html#addPage(com.trolltech.qt.gui.QWizardPage)&quot;&gt;&lt;tt&gt;addPage&lt;/tt&gt;&lt;/a&gt;. By default, the pages are shown in the order in which they were added. For example:&lt;/p&gt;
&lt;pre&gt;    ClassWizard::ClassWizard(QWidget *parent)
        : QWizard(parent)
    {
        addPage(new IntroPage);
        addPage(new ClassInfoPage);
        addPage(new CodeStylePage);
        addPage(new OutputFilesPage);
        addPage(new ConclusionPage);
        ...
    }&lt;/pre&gt;
&lt;p&gt;When a page is about to be shown, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; calls &lt;a href=&quot;QWizard.html#initializePage(int)&quot;&gt;&lt;tt&gt;initializePage&lt;/tt&gt;&lt;/a&gt; (which in turn calls QWizardPage::initializePage()) to fill the page with default values. By default, this function does nothing, but it can be reimplemented to initialize the page's contents based on other pages' fields (see the &lt;a href=&quot;QWizard.html#initialize-page&quot;&gt;example above&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If the user presses &lt;b&gt;Back&lt;/b&gt;, &lt;a href=&quot;QWizard.html#cleanupPage(int)&quot;&gt;&lt;tt&gt;cleanupPage&lt;/tt&gt;&lt;/a&gt; is called (which in turn calls QWizardPage::cleanupPage()). The default implementation resets the page's fields to their original values (the values they had before &lt;a href=&quot;QWizard.html#initializePage(int)&quot;&gt;&lt;tt&gt;initializePage&lt;/tt&gt;&lt;/a&gt; was called). If you want the &lt;b&gt;Back&lt;/b&gt; button to be non-destructive and keep the values entered by the user, simply enable the &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;IndependentPages&lt;/tt&gt;&lt;/a&gt; option.&lt;/p&gt;
&lt;a name=&quot;creating-non-linear-wizards&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Creating Non-Linear Wizards&lt;/h3&gt;
&lt;p&gt;Some wizards are more complex in that they allow different traversal paths based on the information provided by the user. The License Wizard&lt;/tt&gt; example illustrates this. It provides five wizard pages; depending on which options are selected, the user can reach different pages.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/licensewizard-flow.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;In complex wizards, pages are identified by IDs. These IDs are typically defined using an enum. For example:&lt;/p&gt;
&lt;pre&gt;    class LicenseWizard : public QWizard
    {
        ...
        enum { Page_Intro, Page_Evaluate, Page_Register, Page_Details,
               Page_Conclusion };
        ...
    };&lt;/pre&gt;
&lt;p&gt;The pages are inserted using &lt;a href=&quot;QWizard.html#setPage(int, com.trolltech.qt.gui.QWizardPage)&quot;&gt;&lt;tt&gt;setPage&lt;/tt&gt;&lt;/a&gt;, which takes an ID and an instance of &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt; (or of a subclass):&lt;/p&gt;
&lt;pre&gt;    LicenseWizard::LicenseWizard(QWidget *parent)
        : QWizard(parent)
    {
        setPage(Page_Intro, new IntroPage);
        setPage(Page_Evaluate, new EvaluatePage);
        setPage(Page_Register, new RegisterPage);
        setPage(Page_Details, new DetailsPage);
        setPage(Page_Conclusion, new ConclusionPage);
        ...
    }&lt;/pre&gt;
&lt;p&gt;By default, the pages are shown in increasing ID order. To provide a dynamic order that depends on the options chosen by the user, we must reimplement QWizardPage::nextId(). For example:&lt;/p&gt;
&lt;pre&gt;    int IntroPage::nextId() const
    {
        if (evaluateRadioButton-&amp;gt;isChecked()) {
            return LicenseWizard::Page_Evaluate;
        } else {
            return LicenseWizard::Page_Register;
        }
    }

    int EvaluatePage::nextId() const
    {
        return LicenseWizard::Page_Conclusion;
    }

    int RegisterPage::nextId() const
    {
        if (upgradeKeyLineEdit-&amp;gt;text().isEmpty()) {
            return LicenseWizard::Page_Details;
        } else {
            return LicenseWizard::Page_Conclusion;
        }
    }

    int DetailsPage::nextId() const
    {
        return LicenseWizard::Page_Conclusion;
    }

    int ConclusionPage::nextId() const
    {
        return -1;
    }&lt;/pre&gt;
&lt;p&gt;It would also be possible to put all the logic in one place, in a QWizard::nextId() reimplementation. For example:&lt;/p&gt;
&lt;pre&gt;    int LicenseWizard::nextId() const
    {
        switch (currentId()) {
        case Page_Intro:
            if (field(&amp;quot;intro.evaluate&amp;quot;).toBool()) {
                return Page_Evaluate;
            } else {
                return Page_Register;
            }
        case Page_Evaluate:
            return Page_Conclusion;
        case Page_Register:
            if (field(&amp;quot;register.upgradeKey&amp;quot;).toString().isEmpty()) {
                return Page_Details;
            } else {
                return Page_Conclusion;
            }
        case Page_Details:
            return Page_Conclusion;
        case Page_Conclusion:
        default:
            return -1;
        }
    }&lt;/pre&gt;
&lt;p&gt;To start at another page than the page with the lowest ID, call &lt;a href=&quot;QWizard.html#setStartId(int)&quot;&gt;&lt;tt&gt;setStartId&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To test whether a page has been visited or not, call &lt;a href=&quot;QWizard.html#hasVisitedPage(int)&quot;&gt;&lt;tt&gt;hasVisitedPage&lt;/tt&gt;&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre&gt;    void ConclusionPage::initializePage()
    {
        QString licenseText;

        if (wizard()-&amp;gt;hasVisitedPage(LicenseWizard::Page_Evaluate)) {
            licenseText = tr(&amp;quot;&amp;lt;u&amp;gt;Evaluation License Agreement:&amp;lt;/u&amp;gt; &amp;quot;
                             &amp;quot;You can use this software for 30 days and make one &amp;quot;
                             &amp;quot;backup, but you are not allowed to distribute it.&amp;quot;);
        } else if (wizard()-&amp;gt;hasVisitedPage(LicenseWizard::Page_Details)) {
            licenseText = tr(&amp;quot;&amp;lt;u&amp;gt;First-Time License Agreement:&amp;lt;/u&amp;gt; &amp;quot;
                             &amp;quot;You can use this software subject to the license &amp;quot;
                             &amp;quot;you will receive by email.&amp;quot;);
        } else {
            licenseText = tr(&amp;quot;&amp;lt;u&amp;gt;Upgrade License Agreement:&amp;lt;/u&amp;gt; &amp;quot;
                             &amp;quot;This software is licensed under the terms of your &amp;quot;
                             &amp;quot;current license.&amp;quot;);
        }
        bottomLabel-&amp;gt;setText(licenseText);
    }&lt;/pre&gt;

@see &lt;a href=&quot;QWizardPage.html&quot;&gt;&lt;tt&gt;QWizardPage&lt;/tt&gt;&lt;/a&gt;
@see Class Wizard Example&lt;/tt&gt;
@see License Wizard Example&lt;/tt&gt; */">
    <signal name="protected final void accepted()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been accepted either by the user or by calling &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Accepted argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWizard.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void currentIdChanged(int id)" doc="/**
&lt;p&gt;This signal is emitted when the current page changes, with the new current &lt;tt&gt;id&lt;/tt&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int id)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWizard.html#currentId()&quot;&gt;&lt;tt&gt;currentId&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#currentPage()&quot;&gt;&lt;tt&gt;currentPage&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customButtonClicked(int which)" doc="/**
&lt;p&gt;This signal is emitted when the user clicks a custom button. &lt;tt&gt;which&lt;/tt&gt; can be &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton2&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton3&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, no custom button is shown. Call &lt;a href=&quot;QWizard.html#setOption(com.trolltech.qt.gui.QWizard.WizardOption, boolean)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt; with &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton2&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton3&lt;/tt&gt;&lt;/a&gt; to have one, and use &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt; to configure it.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int which)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWizard.html#helpRequested()&quot;&gt;&lt;tt&gt;helpRequested&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void finished(int result)" doc="/**
&lt;p&gt;This signal is emitted when the dialog's &lt;tt&gt;result&lt;/tt&gt; code has been set, either by the user or by calling &lt;a href=&quot;QWizard.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int result)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWizard.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void helpRequested()" doc="/**
&lt;p&gt;This signal is emitted when the user clicks the &lt;b&gt;Help&lt;/b&gt; button.&lt;/p&gt;
&lt;p&gt;By default, no &lt;b&gt;Help&lt;/b&gt; button is shown. Call &lt;a href=&quot;QWizard.html#setOption(com.trolltech.qt.gui.QWizard.WizardOption, boolean)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveHelpButton&lt;/tt&gt;&lt;/a&gt;, true) to have one.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    LicenseWizard::LicenseWizard(QWidget *parent)
        : QWizard(parent)
    {
        ...
        setOption(HaveHelpButton, true);
        connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp()));
        ...
    }

    void LicenseWizard::showHelp()
    {
        static QString lastHelpMessage;

        QString message;

        switch (currentId()) {
        case Page_Intro:
            message = tr(&amp;quot;The decision you make here will affect which page you &amp;quot;
                         &amp;quot;get to see next.&amp;quot;);
            break;
        ...
        default:
            message = tr(&amp;quot;This help is likely not to be of any help.&amp;quot;);
        }

        QMessageBox::information(this, tr(&amp;quot;License Wizard Help&amp;quot;), message);

    }&lt;/pre&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWizard.html#customButtonClicked(int)&quot;&gt;&lt;tt&gt;customButtonClicked&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void rejected()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been rejected either by the user or by calling &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Rejected argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWizard.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QWizard(com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags flags)" doc="/**
&lt;p&gt;Constructs a wizard with the given &lt;tt&gt;parent&lt;/tt&gt; and window &lt;tt&gt;flags&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#parent()&quot;&gt;&lt;tt&gt;parent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowFlags()&quot;&gt;&lt;tt&gt;windowFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QWizard(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QWizard()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt;(0, 0). */"/>
    <method name="public final int addPage(com.trolltech.qt.gui.QWizardPage page)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;page&lt;/tt&gt; to the wizard, and returns the page's ID.&lt;/p&gt;
&lt;p&gt;The ID is guaranteed to be larger than any other ID in the &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; so far.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setPage(int, com.trolltech.qt.gui.QWizardPage)&quot;&gt;&lt;tt&gt;setPage&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#page(int)&quot;&gt;&lt;tt&gt;page&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void back()" doc="/**
&lt;p&gt;Goes back to the previous page.&lt;/p&gt;
&lt;p&gt;This is equivalent to pressing the &lt;b&gt;Back&lt;/b&gt; button.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#next()&quot;&gt;&lt;tt&gt;next&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractButton button(com.trolltech.qt.gui.QWizard.WizardButton which)" doc="/**
&lt;p&gt;Returns the button corresponding to role &lt;tt&gt;which&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String buttonText(com.trolltech.qt.gui.QWizard.WizardButton which)" doc="/**
&lt;p&gt;Returns the text on button &lt;tt&gt;which&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If a text has ben set using &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt;, this text is returned.&lt;/p&gt;
&lt;p&gt;By default, the text on buttons depends on the &lt;a href=&quot;QWizard.html#wizardStyle()&quot;&gt;&lt;tt&gt;wizardStyle&lt;/tt&gt;&lt;/a&gt;. For example, on Mac OS X, the &lt;b&gt;Next&lt;/b&gt; button is called &lt;b&gt;Continue&lt;/b&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#button(com.trolltech.qt.gui.QWizard.WizardButton)&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::buttonText&lt;/tt&gt;
@see &lt;tt&gt;QWizardPage::setButtonText&lt;/tt&gt; */"/>
    <method name="public final int currentId()" doc="/**
&lt;p&gt;Returns the ID of the current page.&lt;/p&gt;
&lt;p&gt;This property cannot be set directly. To change the current page, call &lt;a href=&quot;QWizard.html#next()&quot;&gt;&lt;tt&gt;next&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#back()&quot;&gt;&lt;tt&gt;back&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QWizard.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#currentIdChanged(int)&quot;&gt;&lt;tt&gt;currentIdChanged&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#currentPage()&quot;&gt;&lt;tt&gt;currentPage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWizardPage currentPage()" doc="/**
&lt;p&gt;Returns a pointer to the current page, or 0 if there is no current page (e.g&amp;#x2e;, before the wizard is shown).&lt;/p&gt;
&lt;p&gt;This is equivalent to calling page(&lt;a href=&quot;QWizard.html#currentId()&quot;&gt;&lt;tt&gt;currentId&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#page(int)&quot;&gt;&lt;tt&gt;page&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#currentId()&quot;&gt;&lt;tt&gt;currentId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.Object field(java.lang.String name)" doc="/**
&lt;p&gt;Returns the value of the field called &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function can be used to access fields on any page of the wizard.&lt;/p&gt;

@see &lt;tt&gt;QWizardPage::registerField&lt;/tt&gt;
@see &lt;tt&gt;QWizardPage::field&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#setField(java.lang.String, java.lang.Object)&quot;&gt;&lt;tt&gt;setField&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasVisitedPage(int id)" doc="/**
&lt;p&gt;Returns true if the page history contains page &lt;tt&gt;id&lt;/tt&gt;; otherwise, returns false.&lt;/p&gt;
&lt;p&gt;Pressing &lt;b&gt;Back&lt;/b&gt; marks the current page as &amp;quot;unvisited&amp;quot; again.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#visitedPages()&quot;&gt;&lt;tt&gt;visitedPages&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void next()" doc="/**
&lt;p&gt;Advances to the next page.&lt;/p&gt;
&lt;p&gt;This is equivalent to pressing the &lt;b&gt;Next&lt;/b&gt; or &lt;b&gt;Commit&lt;/b&gt; button.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#nextId()&quot;&gt;&lt;tt&gt;nextId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#back()&quot;&gt;&lt;tt&gt;back&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWizard.WizardOptions options()" doc="/**
&lt;p&gt;Returns the various options that affect the look and feel of the wizard.&lt;/p&gt;
&lt;p&gt;By default, the following options are set (depending on the platform):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Windows: &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HelpButtonOnRight&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Mac OS X: &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;NoDefaultButton&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;NoCancelButton&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;X11 and QWS (Qtopia Core): none.&lt;/li&gt;
&lt;/ul&gt;

@see &lt;a href=&quot;QWizard.html#setOptions(com.trolltech.qt.gui.QWizard.WizardOptions)&quot;&gt;&lt;tt&gt;setOptions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#wizardStyle()&quot;&gt;&lt;tt&gt;wizardStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWizardPage page(int id)" doc="/**
&lt;p&gt;Returns the page with the given &lt;tt&gt;id&lt;/tt&gt;, or 0 if there is no such page.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#addPage(com.trolltech.qt.gui.QWizardPage)&quot;&gt;&lt;tt&gt;addPage&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setPage(int, com.trolltech.qt.gui.QWizardPage)&quot;&gt;&lt;tt&gt;setPage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(com.trolltech.qt.gui.QWizard.WizardPixmap which)" doc="/**
&lt;p&gt;Returns the pixmap set for role &lt;tt&gt;which&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, the only pixmap that is set is the &lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;BackgroundPixmap&lt;/tt&gt;&lt;/a&gt; on Mac OS X.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setPixmap(com.trolltech.qt.gui.QWizard.WizardPixmap, com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::pixmap&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#elements-of-a-wizard-page&quot;&gt;Elements of a Wizard Page&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void restart()" doc="/**
&lt;p&gt;Restarts the wizard at the start page.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#startId()&quot;&gt;&lt;tt&gt;startId&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setButton(com.trolltech.qt.gui.QWizard.WizardButton which, com.trolltech.qt.gui.QAbstractButton button)" doc="/**
&lt;p&gt;Sets the button corresponding to role &lt;tt&gt;which&lt;/tt&gt; to &lt;tt&gt;button&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;To add extra buttons to the wizard (e.g&amp;#x2e;, a &lt;b&gt;Print&lt;/b&gt; button), one way is to call &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt; with &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton1&lt;/tt&gt;&lt;/a&gt; to &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton3&lt;/tt&gt;&lt;/a&gt;, and make the buttons visible using the &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton1&lt;/tt&gt;&lt;/a&gt; to &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton3&lt;/tt&gt;&lt;/a&gt; options.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#button(com.trolltech.qt.gui.QWizard.WizardButton)&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonLayout(java.util.List&lt;com.trolltech.qt.gui.QWizard.WizardButton&gt;)&quot;&gt;&lt;tt&gt;setButtonLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#options()&quot;&gt;options&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setButtonLayout(java.util.List&lt;com.trolltech.qt.gui.QWizard.WizardButton&gt; layout)" doc="/**
&lt;p&gt;Sets the order in which buttons are displayed to &lt;tt&gt;layout&lt;/tt&gt;, where &lt;tt&gt;layout&lt;/tt&gt; is a list of &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;WizardButton&lt;/tt&gt;&lt;/a&gt;s.&lt;/p&gt;
&lt;p&gt;The default layout depends on the options (e.g&amp;#x2e;, whether &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HelpButtonOnRight&lt;/tt&gt;&lt;/a&gt;) that are set. You can call this function if you need more control over the buttons' layout than what &lt;a href=&quot;QWizard.html#options()&quot;&gt;options&lt;/tt&gt;&lt;/a&gt; already provides.&lt;/p&gt;
&lt;p&gt;You can specify horizontal stretches in the layout using &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;Stretch&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    MyWizard::MyWizard(QWidget *parent)
        : QWizard(parent)
    {
        ...
        QList&amp;lt;QWizard::WizardButton&amp;gt; layout;
        layout &amp;lt;&amp;lt; QWizard::Stretch &amp;lt;&amp;lt; QWizard::BackButton &amp;lt;&amp;lt; QWizard::CloseButton
               &amp;lt;&amp;lt; QWizard::NextButton &amp;lt;&amp;lt; QWizard::FinishButton;
        setButtonLayout(layout);
        ...
    }&lt;/pre&gt;

@see &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setOptions(com.trolltech.qt.gui.QWizard.WizardOptions)&quot;&gt;&lt;tt&gt;setOptions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setButtonText(com.trolltech.qt.gui.QWizard.WizardButton which, java.lang.String text)" doc="/**
&lt;p&gt;Sets the text on button &lt;tt&gt;which&lt;/tt&gt; to be &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, the text on buttons depends on the &lt;a href=&quot;QWizard.html#wizardStyle()&quot;&gt;&lt;tt&gt;wizardStyle&lt;/tt&gt;&lt;/a&gt;. For example, on Mac OS X, the &lt;b&gt;Next&lt;/b&gt; button is called &lt;b&gt;Continue&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;To add extra buttons to the wizard (e.g&amp;#x2e;, a &lt;b&gt;Print&lt;/b&gt; button), one way is to call &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt; with &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton2&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton3&lt;/tt&gt;&lt;/a&gt; to set their text, and make the buttons visible using the &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton2&lt;/tt&gt;&lt;/a&gt;, and/or &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton3&lt;/tt&gt;&lt;/a&gt; options.&lt;/p&gt;
&lt;p&gt;Button texts may also be set on a per-page basis using QWizardPage::setButtonText().&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#buttonText(com.trolltech.qt.gui.QWizard.WizardButton)&quot;&gt;&lt;tt&gt;buttonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#button(com.trolltech.qt.gui.QWizard.WizardButton)&quot;&gt;&lt;tt&gt;button&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonLayout(java.util.List&lt;com.trolltech.qt.gui.QWizard.WizardButton&gt;)&quot;&gt;&lt;tt&gt;setButtonLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setOptions(com.trolltech.qt.gui.QWizard.WizardOptions)&quot;&gt;&lt;tt&gt;setOptions&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::setButtonText&lt;/tt&gt; */"/>
    <method name="public final void setField(java.lang.String name, java.lang.Object value)" doc="/**
&lt;p&gt;Sets the value of the field called &lt;tt&gt;name&lt;/tt&gt; to &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function can be used to set fields on any page of the wizard.&lt;/p&gt;

@see &lt;tt&gt;QWizardPage::registerField&lt;/tt&gt;
@see &lt;tt&gt;QWizardPage::setField&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#field(java.lang.String)&quot;&gt;&lt;tt&gt;field&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOption(com.trolltech.qt.gui.QWizard.WizardOption option, boolean on)" doc="/**
&lt;p&gt;Sets the given &lt;tt&gt;option&lt;/tt&gt; to be enabled if &lt;tt&gt;on&lt;/tt&gt; is true; otherwise, clears the given &lt;tt&gt;option&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#options()&quot;&gt;options&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#testOption(com.trolltech.qt.gui.QWizard.WizardOption)&quot;&gt;&lt;tt&gt;testOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setWizardStyle(com.trolltech.qt.gui.QWizard.WizardStyle)&quot;&gt;&lt;tt&gt;setWizardStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOption(com.trolltech.qt.gui.QWizard.WizardOption option)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWizard.html#setOption(com.trolltech.qt.gui.QWizard.WizardOption, boolean)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;option&lt;/tt&gt;, true). */"/>
    <method name="public final void setOptions(com.trolltech.qt.gui.QWizard.WizardOptions options)" doc="/**
&lt;p&gt;Sets the various options that affect the look and feel of the wizard to &lt;tt&gt;options&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, the following options are set (depending on the platform):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Windows: &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HelpButtonOnRight&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Mac OS X: &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;NoDefaultButton&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;NoCancelButton&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;X11 and QWS (Qtopia Core): none.&lt;/li&gt;
&lt;/ul&gt;

@see &lt;a href=&quot;QWizard.html#options()&quot;&gt;&lt;tt&gt;options&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#wizardStyle()&quot;&gt;&lt;tt&gt;wizardStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPage(int id, com.trolltech.qt.gui.QWizardPage page)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;page&lt;/tt&gt; to the wizard with the given &lt;tt&gt;id&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#addPage(com.trolltech.qt.gui.QWizardPage)&quot;&gt;&lt;tt&gt;addPage&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#page(int)&quot;&gt;&lt;tt&gt;page&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPixmap(com.trolltech.qt.gui.QWizard.WizardPixmap which, com.trolltech.qt.gui.QPixmap pixmap)" doc="/**
&lt;p&gt;Sets the pixmap for role &lt;tt&gt;which&lt;/tt&gt; to &lt;tt&gt;pixmap&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The pixmaps are used by &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; when displaying a page. Which pixmaps are actually used depend on the &lt;a href=&quot;QWizard.html#wizard-look-and-feel&quot;&gt;wizard style&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pixmaps can also be set for a specific page using QWizardPage::setPixmap().&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#pixmap(com.trolltech.qt.gui.QWizard.WizardPixmap)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::setPixmap&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#elements-of-a-wizard-page&quot;&gt;Elements of a Wizard Page&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStartId(int id)" doc="/**
&lt;p&gt;Sets the ID of the first page to &lt;tt&gt;id&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this property isn't explicitly set, this property defaults to the lowest page ID in this wizard, or -1 if no page has been inserted yet.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#startId()&quot;&gt;&lt;tt&gt;startId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#nextId()&quot;&gt;&lt;tt&gt;nextId&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSubTitleFormat(com.trolltech.qt.core.Qt.TextFormat format)" doc="/**
&lt;p&gt;Sets the text format used by page subtitles to &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default format is Qt::AutoText.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#subTitleFormat()&quot;&gt;&lt;tt&gt;subTitleFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::title&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#titleFormat()&quot;&gt;&lt;tt&gt;titleFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTitleFormat(com.trolltech.qt.core.Qt.TextFormat format)" doc="/**
&lt;p&gt;Sets the text format used by page titles to &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default format is Qt::AutoText.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#titleFormat()&quot;&gt;&lt;tt&gt;titleFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::title&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#subTitleFormat()&quot;&gt;&lt;tt&gt;subTitleFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWizardStyle(com.trolltech.qt.gui.QWizard.WizardStyle style)" doc="/**
&lt;p&gt;Sets the look and feel of the wizard to &lt;tt&gt;style&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; uses the &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;AeroStyle&lt;/tt&gt;&lt;/a&gt; on a Windows Vista system with alpha compositing enabled, regardless of the current widget style. If this is not the case, the default wizard style depends on the current widget style as follows: &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt; is the default if the current widget style is QMacStyle, &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; is the default if the current widget style is &lt;a href=&quot;QWindowsStyle.html&quot;&gt;&lt;tt&gt;QWindowsStyle&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt; is the default in all other cases.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#wizardStyle()&quot;&gt;&lt;tt&gt;wizardStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#wizard-look-and-feel&quot;&gt;Wizard Look and Feel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#options()&quot;&gt;options&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int startId()" doc="/**
&lt;p&gt;Returns the ID of the first page.&lt;/p&gt;
&lt;p&gt;If this property isn't explicitly set, this property defaults to the lowest page ID in this wizard, or -1 if no page has been inserted yet.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setStartId(int)&quot;&gt;&lt;tt&gt;setStartId&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#nextId()&quot;&gt;&lt;tt&gt;nextId&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.TextFormat subTitleFormat()" doc="/**
&lt;p&gt;Returns the text format used by page subtitles.&lt;/p&gt;
&lt;p&gt;The default format is Qt::AutoText.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setSubTitleFormat(com.trolltech.qt.core.Qt.TextFormat)&quot;&gt;&lt;tt&gt;setSubTitleFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::title&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#titleFormat()&quot;&gt;&lt;tt&gt;titleFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean testOption(com.trolltech.qt.gui.QWizard.WizardOption option)" doc="/**
&lt;p&gt;Returns true if the given &lt;tt&gt;option&lt;/tt&gt; is enabled; otherwise, returns false.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#options()&quot;&gt;options&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setOption(com.trolltech.qt.gui.QWizard.WizardOption, boolean)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setWizardStyle(com.trolltech.qt.gui.QWizard.WizardStyle)&quot;&gt;&lt;tt&gt;setWizardStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.TextFormat titleFormat()" doc="/**
&lt;p&gt;Returns the text format used by page titles.&lt;/p&gt;
&lt;p&gt;The default format is Qt::AutoText.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setTitleFormat(com.trolltech.qt.core.Qt.TextFormat)&quot;&gt;&lt;tt&gt;setTitleFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::title&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#subTitleFormat()&quot;&gt;&lt;tt&gt;subTitleFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.Integer&gt; visitedPages()" doc="/**
&lt;p&gt;Returns the list of visited pages, in the order in which they were visited.&lt;/p&gt;
&lt;p&gt;Pressing &lt;b&gt;Back&lt;/b&gt; marks the current page as &amp;quot;unvisited&amp;quot; again.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#hasVisitedPage(int)&quot;&gt;&lt;tt&gt;hasVisitedPage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWizard.WizardStyle wizardStyle()" doc="/**
&lt;p&gt;Returns the look and feel of the wizard.&lt;/p&gt;
&lt;p&gt;By default, &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; uses the &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;AeroStyle&lt;/tt&gt;&lt;/a&gt; on a Windows Vista system with alpha compositing enabled, regardless of the current widget style. If this is not the case, the default wizard style depends on the current widget style as follows: &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt; is the default if the current widget style is QMacStyle, &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; is the default if the current widget style is &lt;a href=&quot;QWindowsStyle.html&quot;&gt;&lt;tt&gt;QWindowsStyle&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt; is the default in all other cases.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setWizardStyle(com.trolltech.qt.gui.QWizard.WizardStyle)&quot;&gt;&lt;tt&gt;setWizardStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#wizard-look-and-feel&quot;&gt;Wizard Look and Feel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#options()&quot;&gt;options&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void cleanupPage(int id)" doc="/**
&lt;p&gt;This virtual function is called by &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; when the user clicks &lt;b&gt;Back&lt;/b&gt; (unless the QWizard::IndependentPages option is set).&lt;/p&gt;
&lt;p&gt;The default implementation calls QWizardPage::cleanupPage() on page(&lt;tt&gt;id&lt;/tt&gt;).&lt;/p&gt;

@see &lt;tt&gt;QWizardPage::cleanupPage&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#initializePage(int)&quot;&gt;&lt;tt&gt;initializePage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void done(int result)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void initializePage(int id)" doc="/**
&lt;p&gt;This virtual function is called by &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; to prepare page &lt;tt&gt;id&lt;/tt&gt; just before it is shown. (However, if the &lt;tt&gt;QWizard::IndependentPages&lt;/tt&gt; option is set, this function is only called the first time the page is shown.)&lt;/p&gt;
&lt;p&gt;By reimplementing this function, you can ensure that the page's fields are properly initialized based on fields from previous pages.&lt;/p&gt;
&lt;p&gt;The default implementation calls QWizardPage::initializePage() on page(&lt;tt&gt;id&lt;/tt&gt;).&lt;/p&gt;

@see &lt;tt&gt;QWizardPage::initializePage&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#cleanupPage(int)&quot;&gt;&lt;tt&gt;cleanupPage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public int nextId()" doc="/**
&lt;p&gt;This virtual function is called by &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; to find out which page to show when the user clicks the &lt;b&gt;Next&lt;/b&gt; button.&lt;/p&gt;
&lt;p&gt;The default implementation calls QWizardPage::nextId() on the &lt;a href=&quot;QWizard.html#currentPage()&quot;&gt;&lt;tt&gt;currentPage&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWizardPage::nextId&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#currentPage()&quot;&gt;&lt;tt&gt;currentPage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void setVisible(boolean visible)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean validateCurrentPage()" doc="/**
&lt;p&gt;This virtual function is called by &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt; when the user clicks &lt;b&gt;Next&lt;/b&gt; or &lt;b&gt;Finish&lt;/b&gt; to perform some last-minute validation. If it returns true, the next page is shown (or the wizard finishes); otherwise, the current page stays up.&lt;/p&gt;
&lt;p&gt;The default implementation calls QWizardPage::validatePage() on the &lt;a href=&quot;QWizard.html#currentPage()&quot;&gt;&lt;tt&gt;currentPage&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When possible, it is usually better style to disable the &lt;b&gt;Next&lt;/b&gt; or &lt;b&gt;Finish&lt;/b&gt; button (by specifying &lt;a href=&quot;QWizard.html#mandatory-fields&quot;&gt;mandatory fields&lt;/tt&gt;&lt;/a&gt; or by reimplementing QWizardPage::isComplete()) than to reimplement &lt;a href=&quot;QWizard.html#validateCurrentPage()&quot;&gt;&lt;tt&gt;validateCurrentPage&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QWizardPage::validatePage&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#currentPage()&quot;&gt;&lt;tt&gt;currentPage&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="WizardButton" doc="/**
&lt;p&gt;This enum specifies the buttons in a wizard.&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;BackButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The &lt;b&gt;Back&lt;/b&gt; button (&lt;b&gt;Go Back&lt;/b&gt; on Mac OS X)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;NextButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The &lt;b&gt;Next&lt;/b&gt; button (&lt;b&gt;Continue&lt;/b&gt; on Mac OS X)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CommitButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The &lt;b&gt;Commit&lt;/b&gt; button&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;FinishButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The &lt;b&gt;Finish&lt;/b&gt; button (&lt;b&gt;Done&lt;/b&gt; on Mac OS X)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CancelButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The &lt;b&gt;Cancel&lt;/b&gt; button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;NoCancelButton&lt;/tt&gt;&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;HelpButton&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;5&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The &lt;b&gt;Help&lt;/b&gt; button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveHelpButton&lt;/tt&gt;&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CustomButton1&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;6&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The first user-defined button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton1&lt;/tt&gt;&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CustomButton2&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;7&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The second user-defined button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton2&lt;/tt&gt;&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;CustomButton3&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;8&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The third user-defined button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton3&lt;/tt&gt;&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The following value is only useful when calling &lt;a href=&quot;QWizard.html#setButtonLayout(java.util.List&lt;com.trolltech.qt.gui.QWizard.WizardButton&gt;)&quot;&gt;&lt;tt&gt;setButtonLayout&lt;/tt&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Stretch&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;9&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;A horizontal stretch in the button layout&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setButton(com.trolltech.qt.gui.QWizard.WizardButton, com.trolltech.qt.gui.QAbstractButton)&quot;&gt;&lt;tt&gt;setButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonText(com.trolltech.qt.gui.QWizard.WizardButton, java.lang.String)&quot;&gt;&lt;tt&gt;setButtonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setButtonLayout(java.util.List&lt;com.trolltech.qt.gui.QWizard.WizardButton&gt;)&quot;&gt;&lt;tt&gt;setButtonLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#customButtonClicked(int)&quot;&gt;&lt;tt&gt;customButtonClicked&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="BackButton" doc="/**
&lt;p&gt;The &lt;b&gt;Back&lt;/b&gt; button (&lt;b&gt;Go Back&lt;/b&gt; on Mac OS X)&lt;/p&gt;
 */"/>
        <enum-value name="NextButton" doc="/**
&lt;p&gt;The &lt;b&gt;Next&lt;/b&gt; button (&lt;b&gt;Continue&lt;/b&gt; on Mac OS X)&lt;/p&gt;
 */"/>
        <enum-value name="CommitButton" doc="/**
&lt;p&gt;The &lt;b&gt;Commit&lt;/b&gt; button&lt;/p&gt;
 */"/>
        <enum-value name="FinishButton" doc="/**
&lt;p&gt;The &lt;b&gt;Finish&lt;/b&gt; button (&lt;b&gt;Done&lt;/b&gt; on Mac OS X)&lt;/p&gt;
 */"/>
        <enum-value name="CancelButton" doc="/**
&lt;p&gt;The &lt;b&gt;Cancel&lt;/b&gt; button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;NoCancelButton&lt;/tt&gt;&lt;/a&gt;)&lt;/p&gt;
 */"/>
        <enum-value name="HelpButton" doc="/**
&lt;p&gt;The &lt;b&gt;Help&lt;/b&gt; button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveHelpButton&lt;/tt&gt;&lt;/a&gt;)&lt;/p&gt;
 */"/>
        <enum-value name="CustomButton1" doc="/**
&lt;p&gt;The first user-defined button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton1&lt;/tt&gt;&lt;/a&gt;)&lt;/p&gt;
 */"/>
        <enum-value name="CustomButton2" doc="/**
&lt;p&gt;The second user-defined button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton2&lt;/tt&gt;&lt;/a&gt;)&lt;/p&gt;
 */"/>
        <enum-value name="CustomButton3" doc="/**
&lt;p&gt;The third user-defined button (see also &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;HaveCustomButton3&lt;/tt&gt;&lt;/a&gt;)&lt;/p&gt;
 */"/>
        <enum-value name="Stretch" doc="/**
&lt;p&gt;A horizontal stretch in the button layout&lt;/p&gt;
 */"/>
        <enum-value name="NoButton" doc="/**
Internal. */"/>
        <enum-value name="NStandardButtons" doc="/**
Internal. */"/>
        <enum-value name="NButtons" doc="/**
Internal. */"/>
</enum>
    <enum name="WizardStyle" doc="/**
&lt;p&gt;This enum specifies the different looks supported by &lt;a href=&quot;QWizard.html#QWizard(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWizard&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setWizardStyle(com.trolltech.qt.gui.QWizard.WizardStyle)&quot;&gt;&lt;tt&gt;setWizardStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#WizardOption-enum&quot;&gt;&lt;tt&gt;WizardOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#wizard-look-and-feel&quot;&gt;Wizard Look and Feel&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="ClassicStyle" doc="/**
&lt;p&gt;Classic Windows look&lt;/p&gt;
 */"/>
        <enum-value name="ModernStyle" doc="/**
&lt;p&gt;Modern Windows look&lt;/p&gt;
 */"/>
        <enum-value name="MacStyle" doc="/**
&lt;p&gt;Mac OS X look&lt;/p&gt;
 */"/>
        <enum-value name="AeroStyle" doc="/**
&lt;p&gt;Windows Aero look&lt;/p&gt;
 */"/>
        <enum-value name="NStyles" doc="/**
Internal. */"/>
</enum>
    <enum name="WizardPixmap" doc="/**
&lt;p&gt;This enum specifies the pixmaps that can be associated with a page.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setPixmap(com.trolltech.qt.gui.QWizard.WizardPixmap, com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWizardPage::setPixmap&lt;/tt&gt;
@see &lt;a href=&quot;QWizard.html#elements-of-a-wizard-page&quot;&gt;Elements of a Wizard Page&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="WatermarkPixmap" doc="/**
&lt;p&gt;The tall pixmap on the left side of a &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; page&lt;/p&gt;
 */"/>
        <enum-value name="LogoPixmap" doc="/**
&lt;p&gt;The small pixmap on the right side of a &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ClassicStyle&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; page header&lt;/p&gt;
 */"/>
        <enum-value name="BannerPixmap" doc="/**
&lt;p&gt;The pixmap that occupies the background of a &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;ModernStyle&lt;/tt&gt;&lt;/a&gt; page header&lt;/p&gt;
 */"/>
        <enum-value name="BackgroundPixmap" doc="/**
&lt;p&gt;The pixmap that occupies the background of a &lt;a href=&quot;QWizard.html#WizardStyle-enum&quot;&gt;&lt;tt&gt;MacStyle&lt;/tt&gt;&lt;/a&gt; wizard&lt;/p&gt;
 */"/>
        <enum-value name="NPixmaps" doc="/**
Internal. */"/>
</enum>
    <enum name="WizardOption" doc="/**
&lt;p&gt;This enum specifies various options that affect the look and feel of a wizard.&lt;/p&gt;

@see &lt;a href=&quot;QWizard.html#setOptions(com.trolltech.qt.gui.QWizard.WizardOptions)&quot;&gt;&lt;tt&gt;setOptions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#setOption(com.trolltech.qt.gui.QWizard.WizardOption, boolean)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWizard.html#testOption(com.trolltech.qt.gui.QWizard.WizardOption)&quot;&gt;&lt;tt&gt;testOption&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="IndependentPages" doc="/**
&lt;p&gt;The pages are independent of each other (i.e&amp;#x2e;, they don't derive values from each other).&lt;/p&gt;
 */"/>
        <enum-value name="IgnoreSubTitles" doc="/**
&lt;p&gt;Don't show any subtitles, even if they are set.&lt;/p&gt;
 */"/>
        <enum-value name="ExtendedWatermarkPixmap" doc="/**
&lt;p&gt;Extend any &lt;a href=&quot;QWizard.html#WizardPixmap-enum&quot;&gt;&lt;tt&gt;WatermarkPixmap&lt;/tt&gt;&lt;/a&gt; all the way down to the window's edge.&lt;/p&gt;
 */"/>
        <enum-value name="NoDefaultButton" doc="/**
&lt;p&gt;Don't make the &lt;b&gt;Next&lt;/b&gt; or &lt;b&gt;Finish&lt;/b&gt; button the dialog's default button&lt;/tt&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="NoBackButtonOnStartPage" doc="/**
&lt;p&gt;Don't show the &lt;b&gt;Back&lt;/b&gt; button on the start page.&lt;/p&gt;
 */"/>
        <enum-value name="NoBackButtonOnLastPage" doc="/**
&lt;p&gt;Don't show the &lt;b&gt;Back&lt;/b&gt; button on the last page.&lt;/p&gt;
 */"/>
        <enum-value name="DisabledBackButtonOnLastPage" doc="/**
&lt;p&gt;Disable the &lt;b&gt;Back&lt;/b&gt; button on the last page.&lt;/p&gt;
 */"/>
        <enum-value name="HaveNextButtonOnLastPage" doc="/**
&lt;p&gt;Show the (disabled) &lt;b&gt;Next&lt;/b&gt; button on the last page.&lt;/p&gt;
 */"/>
        <enum-value name="HaveFinishButtonOnEarlyPages" doc="/**
&lt;p&gt;Show the (disabled) &lt;b&gt;Finish&lt;/b&gt; button on non-final pages.&lt;/p&gt;
 */"/>
        <enum-value name="NoCancelButton" doc="/**
&lt;p&gt;Don't show the &lt;b&gt;Cancel&lt;/b&gt; button.&lt;/p&gt;
 */"/>
        <enum-value name="CancelButtonOnLeft" doc="/**
&lt;p&gt;Put the &lt;b&gt;Cancel&lt;/b&gt; button on the left of &lt;b&gt;Back&lt;/b&gt; (rather than on the right of &lt;b&gt;Finish&lt;/b&gt; or &lt;b&gt;Next&lt;/b&gt;).&lt;/p&gt;
 */"/>
        <enum-value name="HaveHelpButton" doc="/**
&lt;p&gt;Show the &lt;b&gt;Help&lt;/b&gt; button.&lt;/p&gt;
 */"/>
        <enum-value name="HelpButtonOnRight" doc="/**
&lt;p&gt;Put the &lt;b&gt;Help&lt;/b&gt; button on the far right of the button layout (rather than on the far left).&lt;/p&gt;
 */"/>
        <enum-value name="HaveCustomButton1" doc="/**
&lt;p&gt;Show the first user-defined button (&lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton1&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
 */"/>
        <enum-value name="HaveCustomButton2" doc="/**
&lt;p&gt;Show the second user-defined button (&lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton2&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
 */"/>
        <enum-value name="HaveCustomButton3" doc="/**
&lt;p&gt;Show the third user-defined button (&lt;a href=&quot;QWizard.html#WizardButton-enum&quot;&gt;&lt;tt&gt;CustomButton3&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
 */"/>
</enum>
</class>
