C++ (Qt)void QWizardPage::​registerField(const QString & name, QWidget * widget, const char * property = 0, const char * changedSignal = 0);
C++ (Qt)QVariant QWizard::​field(const QString & name) const;QVariant QWizardPage::​field(const QString & name) const;
C++ (Qt)class Wizard : public QWizard{ Q_OBJECTpublic: Wizard(QWidget* parent = NULL) ~Wizard();public slots: void accept()}
C++ (Qt)Wizard::Wizard(QWidget* parent /* = NULL */) : QWizard(parent){ setWindowTitle(tr("Wizard")); Dao* dao = new Dao(); addPage(new WizardPage1(dao)); addPage(new WizardPage2(dao));} Wizard::~Wizard(){} void Wizard::accept(){...}
C++ (Qt)class WizardPage : public QWizardPage{ Q_OBJECTpublic: WizardPage(Dao* dao, QWidget* parent = NULL) : QWizardPage(parent) , m_dao(dao) { } Dao* dao() { return m_dao; }private: Dao* m_dao;}
C++ (Qt)class WizardPage1 : public WizardPage{ Q_OBJECTpublic: WizardPage1(Dao* dao, QWidget* parent = NULL) : WizardPage1(dao, parent) { } void someMethod() { dao()->getData(); }}
C++ (Qt)int QWizardPage::nextId() const
C++ (Qt)bool QWizardPage::isComplete() const
C++ (Qt)bool QWizardPage::validatePage();
C++ (Qt)bool FirstPage::validatePage() const;