#include "widget.h"
#include "ui_widget.h"Widget::Widget(QWidget *parent): QWidget(parent), ui(new Ui::Widget)
{ui->setupUi(this);this->setWindowFlag(Qt::FramelessWindowHint);//接收动图QMovie *mv = new QMovie(":/pictrue/th.gif");//设置背景图片ui->label->setMovie(mv);//让图片动起来mv->start();//设置图片自适应ui->label->setScaledContents(true);//设置图标2ui->label_2->setPixmap(QPixmap(":/pictrue/userName.jpg"));//设置图片自适应ui->label_2->setScaledContents(true);ui->label_2->setStyleSheet("background:transparent;font:16pt '等线';color:white");//设置图标3ui->label_3->setPixmap(QPixmap(":/pictrue/passwd.jpg"));//设置图片自适应ui->label_3->setScaledContents(true);//设置行编辑占位ui->lineEdit->setPlaceholderText("手机号/QQ");ui->lineEdit_2->setPlaceholderText("密码");//设置行透明ui->lineEdit_2->setStyleSheet("background:transparent;color:white");ui->lineEdit->setStyleSheet("background:transparent;color:white");//设置密码不显示ui->lineEdit_2->setEchoMode(QLineEdit::Password);ui->pushButton->setStyleSheet("background:transparent;border-radius:5px;color:white");ui->label_4->setStyleSheet("color:rgba(44,212,224,255)");
}Widget::~Widget()
{delete ui;
}