MyWidget::MyWidget(QWidget *parent)
this->setWindowTitle("登录窗口");
this->setWindowIcon(QIcon("C:\\Users\\EDY\\Desktop\\pictrue\\qq.png"));
this->setWindowFlag(Qt::FramelessWindowHint);
this->setStyleSheet("background-color:white;border:3px");
QLabel *lab1 = new QLabel(this);
QMovie *mv = new QMovie("C:\\Users\\EDY\\Desktop\\pictrue\\motion.gif");
lab1->setScaledContents(true);
QLabel *lab2 = new QLabel(this);
lab2->setPixmap(QPixmap("C:\\Users\\EDY\\Desktop\\pictrue\\icon.png"));
lab2->setScaledContents(true);
QLabel *lab3 = new QLabel(this);
lab3->setStyleSheet("background-color:transparent;color:white;front:20px");
QLabel *lab4 = new QLabel(this);
lab4->setPixmap(QPixmap("C:\\Users\\EDY\\Desktop\\pictrue\\wodepeizhenshi.png"));
lab4->setScaledContents(true);
QLineEdit *ed1 = new QLineEdit(this);
ed1->setPlaceholderText("QQ号码/手机/邮箱");
QLabel *lab5 = new QLabel(this);
lab5->setPixmap(QPixmap("C:\\Users\\EDY\\Desktop\\pictrue\\passwd.jpg"));
lab5->setScaledContents(true);
QLineEdit *ed2 = new QLineEdit(this);
ed2->setPlaceholderText("密码");
ed2->setEchoMode(QLineEdit::Password);
QCheckBox *box1 = new QCheckBox(this);
QLabel *lab6 = new QLabel(this);
QCheckBox *box2 = new QCheckBox(this);
QLabel *lab7 = new QLabel(this);
QLabel *lab8 = new QLabel(this);
QPushButton *btn1 = new QPushButton("登录",this);
btn1->setStyleSheet("background-color:rgb(10,200,255);color:white;border-radius:3");
QPushButton *btn2 = new QPushButton("注册账号",this);
QLabel *lab9 = new QLabel(this);
lab9->setPixmap(QPixmap("C:\\Users\\EDY\\Desktop\\pictrue\\code.png"));
lab9->setScaledContents(true);
QLabel *lab10 = new QLabel(this);
lab10->setPixmap(QPixmap("C:\\Users\\EDY\\Desktop\\pictrue\\qq.png"));
lab10->setScaledContents(true);

