码蚁0817班级,AI项目,脸谱,双团队架构,赛马机制
lyb
2024-12-23 2fdfa831d0d3a5364ee0071fd8fa16d9af9c2b36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "loginmainwindow.h"
#include "ui_loginmainwindow.h"
 
LoginMainWindow::LoginMainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::LoginMainWindow)
{
    ui->setupUi(this);
    m_register=new RegisterMainWindow(this);
 
    connect(m_register,SIGNAL(toLogin()),this,SLOT(returnLogin()));
}
 
LoginMainWindow::~LoginMainWindow()
{
    delete ui;
}
 
void LoginMainWindow::on_pushButton_2_clicked()
{
    this->hide();
    m_register->show();
}
 
void LoginMainWindow::returnLogin()
{
    this->show();
    m_register->hide();
}