一、思维导图
二、练习
QMovie *mv= new QMovie(":/Logo/giphy (2).gif");
ui->label_5->setMovie(mv);
ui->label_5->setScaledContents(true);
mv->start();
this->setWindowIcon(QIcon(":/Logo/bdf48b5198c8417da0e4fef6b72c5657.png"));
//设置纯净窗口
this->setWindowFlag(Qt::FramelessWindowHint);
//去掉空白
this->setAttribute(Qt::WA_TranslucentBackground);
}
Widget::~Widget()
{
delete ui;
}
void Widget::on_pushButton_clicked()
{
emit my_signal();
if(ui->acEdit->text()=="admin" && ui->psEdit->text()=="123456")
{
qDebug() << "登陆成功";
}
else
{
qDebug() << "登陆失败";
ui->psEdit->setText("");
}
}
SYEAM 2024-03-24 15-36-20