Exemplo n.º 1
0
QWizardPage *FirstRunWizard::createIntroPage()
{
	QWizardPage *introPage = new QWizardPage(this);
	introPage->setTitle( tr("Introduction") );
	introPage->setSubTitle( tr("This wizard will help setup the initial parameters of My Backstage") );

	return introPage;
}
Exemplo n.º 2
0
//! [2]
QWizardPage *createRegistrationPage()
//! [1] //! [3]
{
//! [3]
    QWizardPage *page = new QWizardPage;
    page->setTitle("Registration");
    page->setSubTitle("Please fill both fields.");

    QLabel *nameLabel = new QLabel("Name:");
    QLineEdit *nameLineEdit = new QLineEdit;

    QLabel *emailLabel = new QLabel("Email address:");
    QLineEdit *emailLineEdit = new QLineEdit;

    QGridLayout *layout = new QGridLayout;
    layout->addWidget(nameLabel, 0, 0);
    layout->addWidget(nameLineEdit, 0, 1);
    layout->addWidget(emailLabel, 1, 0);
    layout->addWidget(emailLineEdit, 1, 1);
    page->setLayout(layout);

    return page;
//! [4]
}