class AppWizard : public QWizard
{
Q_OBJECT
public:
explicit AppWizard
(QWidget *parent
= 0);
};
class WelcomePage : public QWizardPage
{
Q_OBJECT
public:
explicit WelcomePage
(QWidget *parent
= 0);
private:
};
class AppWizard : public QWizard
{
Q_OBJECT
public:
explicit AppWizard(QWidget *parent = 0);
};
class WelcomePage : public QWizardPage
{
Q_OBJECT
public:
explicit WelcomePage(QWidget *parent = 0);
private:
QLabel *intro_label_1;
QLabel *intro_label_2;
QVBoxLayout *vbox_layout;
QGridLayout *grid_layout;
QLabel *email_label;
QLineEdit *email_edit;
QRegExpValidator *email_validator;
QLabel *password_label;
QLineEdit *password_edit;
QPushButton *login;
QLabel *register_label;
};
To copy to clipboard, switch view to plain text mode
WelcomePage
::WelcomePage(QWidget *parent
) : QWizardPage(parent)
{
// QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
setTitle("There is title");
setButtonText(QWizard::NextButton, "Another name");
setButtonText(QWizard::CancelButton, "Another cancel");
intro_label_1
= new QLabel("Welcome to software");
intro_label_2
= new QLabel("ółćłćłźźłżżźćźżłźżć.");
email_label
= new QLabel("ółłłąął");
password_label
= new QLabel("ddsdfdsffds");
password_edit
->setEchoMode
(QLineEdit::Password);
login->setText("dsfsfsfsfdsf");
login->setMaximumWidth(100);
register_label
= new QLabel("dsfdfsdsfdsff");
grid_layout->addWidget(intro_label_1, 0, 0);
grid_layout->addWidget(intro_label_2, 1,0);
grid_layout->addWidget(email_label, 2, 0);
grid_layout->addWidget(email_edit, 2, 1);
grid_layout->addWidget(password_label, 3, 0);
grid_layout->addWidget(password_edit, 3, 1);
grid_layout->addWidget(login, 4, 0);
grid_layout->addWidget(register_label, 7, 0);
}
WelcomePage::WelcomePage(QWidget *parent) :
QWizardPage(parent)
{
// QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
setTitle("There is title");
setButtonText(QWizard::NextButton, "Another name");
setButtonText(QWizard::CancelButton, "Another cancel");
intro_label_1 = new QLabel("Welcome to software");
intro_label_2 = new QLabel("ółćłćłźźłżżźćźżłźżć.");
email_label = new QLabel("ółłłąął");
email_edit = new QLineEdit(this);
password_label = new QLabel("ddsdfdsffds");
password_edit = new QLineEdit(this);
password_edit->setEchoMode(QLineEdit::Password);
login = new QPushButton();
login->setText("dsfsfsfsfdsf");
login->setMaximumWidth(100);
register_label = new QLabel("dsfdfsdsfdsff");
grid_layout = new QGridLayout(this);
grid_layout->addWidget(intro_label_1, 0, 0);
grid_layout->addWidget(intro_label_2, 1,0);
grid_layout->addWidget(email_label, 2, 0);
grid_layout->addWidget(email_edit, 2, 1);
grid_layout->addWidget(password_label, 3, 0);
grid_layout->addWidget(password_edit, 3, 1);
grid_layout->addWidget(login, 4, 0);
grid_layout->addWidget(register_label, 7, 0);
}
To copy to clipboard, switch view to plain text mode
// QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
// QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
To copy to clipboard, switch view to plain text mode
Bookmarks