//登陆界面
this->setWindowTitle("传奇霸业");
this->setWindowIcon(QIcon("C:\\Users\\l1693\\Desktop\\pictures\\1.png"));
this->resize(400,300);
this->setFixedSize(400,300);
//登录界面修饰
//底图
QLabel *lab5 = new QLabel(this);
lab5->resize(400,300);
lab5->setPixmap(QPixmap("C:\\Users\\l1693\\Desktop\\pictures\\4.png"));
lab5->setScaledContents(true);
//左边的人
QLabel *lab3 = new QLabel(this);
lab3->resize(100,200);
lab3->setPixmap(QPixmap("C:\\Users\\l1693\\Desktop\\pictures\\2.png"));
lab3->setScaledContents(true);
lab3->move(10,50);
//右边的🔪
QLabel *lab4 = new QLabel(this);
lab4->resize(100,200);
QMovie *mv = new QMovie("C:\\Users\\l1693\\Desktop\\pictures\\3.gif");
lab4->setMovie(mv);
mv->start();
lab4->setScaledContents(true);
lab4->move(290,50);
//账号密码标签
QLabel *lab1 = new QLabel("账号:",this);
QLabel *lab2 = new QLabel("密码:",this);
lab1->resize(50,30);
lab2->resize(50,30);
lab1->move(125,100);
lab2->move(125,130);
//账号密码行编辑器
QLineEdit *edit1 = new QLineEdit("",this);
QLineEdit *edit2 = new QLineEdit("",this);
edit1->setPlaceholderText("账号");
edit2->setPlaceholderText("密码");
edit2->setEchoMode(QLineEdit::Password);
edit1->resize(100,30);
edit2->resize(100,30);
edit1->move(175,100);
edit2->move(175,130);
//登录注册按钮
QPushButton *btn1 = new QPushButton("登录",this);
QPushButton *btn2 = new QPushButton("注册",this);
btn1->resize(60,30);
btn2->resize(60,30);
btn1->move(130,170);
btn2->move(210,170);