#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);
//设置图标2
ui->label_2->setPixmap(QPixmap(":/pictrue/userName.jpg"));
//设置图片自适应
ui->label_2->setScaledContents(true);
ui->label_2->setStyleSheet("background:transparent;font:16pt '等线';color:white");
//设置图标3
ui->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;
}