|
@@ -39,7 +39,16 @@ void LoginView::setStackIndex(int index)
|
|
|
|
|
|
void LoginView::initialize()
|
|
|
{
|
|
|
- m_vBoxLayout = new QVBoxLayout();
|
|
|
+ m_vBoxLayout = new QVBoxLayout();
|
|
|
+ m_title = new QLabel(this);
|
|
|
+ m_title->setAlignment(Qt::AlignCenter);
|
|
|
+ m_title->setText("伪装防护评估系统软件");
|
|
|
+ m_title->setStyleSheet("color:#ffffff;");
|
|
|
+ QFont ft;
|
|
|
+ ft.setPointSize(30);
|
|
|
+ ft.setBold(true);
|
|
|
+ m_title->setFont(ft);
|
|
|
+
|
|
|
m_stackedWidget = new QStackedWidget(this);
|
|
|
m_loginWidget = new LoginWidget(this);
|
|
|
m_registerWidget = new RegisterWidget(this);
|
|
@@ -49,7 +58,11 @@ void LoginView::initLayout()
|
|
|
{
|
|
|
setLayout(m_vBoxLayout);
|
|
|
m_vBoxLayout->setAlignment(Qt::AlignCenter);
|
|
|
+ m_vBoxLayout->addStretch();
|
|
|
+ m_vBoxLayout->addWidget(m_title);
|
|
|
+ m_vBoxLayout->addSpacing(50);
|
|
|
m_vBoxLayout->addWidget(m_stackedWidget);
|
|
|
+ m_vBoxLayout->addStretch();
|
|
|
m_stackedWidget->addWidget(m_loginWidget);
|
|
|
m_stackedWidget->addWidget(m_registerWidget);
|
|
|
}
|