MyWidget::MyWidget(QWidget *parent)
this->setWindowFlag(Qt::FramelessWindowHint);
this->setWindowIcon(QIcon("D:\\c++qt\\picture\\genshin.png"));
this->setStyleSheet("background-color:rgb(250,250,250)");
QLabel *lab1 = new QLabel(this);
QMovie *mv = new QMovie("D:\\c++qt\\picture\\leishen.gif");
lab1->setScaledContents(true);
QLabel *lab2 = new QLabel(this);
lab2->setPixmap(QPixmap("D:\\c++qt\\picture\\genshin.png"));
lab2->setScaledContents(true);
QLabel *lab3 = new QLabel("原神", this);
lab3->setScaledContents(true);
lab3->setStyleSheet("background:transparent");
QLineEdit *ed1 = new QLineEdit(this);
ed1->setPlaceholderText("账号\\手机号");
QLineEdit *ed2 = new QLineEdit(this);
ed2->setPlaceholderText("密码");
ed2->setEchoMode(QLineEdit::Password);
QLabel *lab4 = new QLabel(this);
lab4->setPixmap(QPixmap("D:\\c++qt\\picture\\OIP-C.jpg"));
lab4->setScaledContents(true);
QLabel *lab5 = new QLabel(this);
lab5->setPixmap(QPixmap("D:\\c++qt\\picture\\suo.jpg"));
lab5->setScaledContents(true);
QLabel *lab6 = new QLabel("自动登录", this);
lab6->setScaledContents(true);
QLabel *lab7 = new QLabel("记住密码", this);
lab7->setScaledContents(true);
QLabel *lab8 = new QLabel("找回密码", this);
lab8->setScaledContents(true);
QLabel *lab9 = new QLabel(this);
lab9->setPixmap(QPixmap("D:\\c++qt\\picture\\QQerweima.png"));
lab9->setScaledContents(true);
QLabel *lab10 = new QLabel(this);
lab10->setPixmap(QPixmap("D:\\c++qt\\picture\\xiao.jpg"));
lab10->setScaledContents(true);
QLabel *lab11 = new QLabel("注册账号", this);
lab11->setScaledContents(true);
lab11->setStyleSheet("background:transparent");
QPushButton *btn1 = new QPushButton("登录", this);
btn1->setStyleSheet("background-color:rgb(32, 212, 255); border-radius:5");