
MyWidget::MyWidget(QWidget *parent)
this->setWindowTitle(" ");
this->setWindowIcon(QIcon("D:\\qw\\66.jpeg"));
this->setStyleSheet("background-color:white");
this->setWindowFlag(Qt::FramelessWindowHint);
QLabel *lab1 = new QLabel(this);
QMovie *mv = new QMovie("D:\\qw\\88.gif");
lab1->setPixmap(QPixmap("D:\\qw\\88.gif"));
lab1->setScaledContents(true);
QLabel *lab2 = new QLabel(this);
lab2->setPixmap(QPixmap("D:\\qw\\66.jpeg"));
lab2->setScaledContents(true);
QLabel *lab3 = new QLabel(this);
QLabel *lab4 = new QLabel(this);
lab3->setPixmap(QPixmap("D:\\qw\\1.png"));
lab3->setScaledContents(true);
lab4->setPixmap(QPixmap("D:\\qw\\2.png"));
lab4->setScaledContents(true);
QLineEdit *ed1 = new QLineEdit (this);
QLineEdit *ed2 = new QLineEdit (this);
ed2->setEchoMode(QLineEdit::Password);
ed1->setPlaceholderText("账户:");
ed2->setPlaceholderText("密码:");
QPushButton *btn1 = new QPushButton ("登录",this);
btn1->setStyleSheet("background-color:rgb(112,214,253);border-radius:4");
QLabel *ed3 = new QLabel ("自动登录",this);
QLabel *ed4 = new QLabel ("记住密码",this);
QLabel *ed5 = new QLabel ("找回密码",this);
QLabel *lab5 = new QLabel ("注册账号",this);
ed3->setScaledContents(true);
QLabel *lab6 =new QLabel(this);
lab6->setPixmap(QPixmap("D:\\qw\\4.jpg"));
lab6->setScaledContents(true);

