一、思维导图

二、练习
自由发挥登录窗口的应用场景,实现一个登录窗口界面。(不要使用课堂上的图片和代码,自己发挥,有利于后面项目的完成)
要求:
- 
需要使用Ui界面文件进行界面设计
 - 
ui界面上的组件相关设置,通过代码实现
 - 
需要添加适当的动图
 
            
            
              cpp
              
              
            
          
          #include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    this->setWindowTitle("SYEAM");
    this->setWindowIcon(QIcon("C:/Users/考拉/Downloads/bdf48b5198c8417da0e4fef6b72c5657.png"));
    //设置二维码
    ui->CQ->setPixmap(QPixmap("C:/Users/考拉/Downloads/bing_generated_qrcode.png"));
    ui->CQ->setScaledContents(true);
    ui->label_3->setPixmap(QPixmap("C:/Users/考拉/Downloads/bdf48b5198c8417da0e4fef6b72c5657.png"));
    ui->label_3->setScaledContents(true);
    QMovie *mv = new QMovie("C:/Users/考拉/Downloads/giphy (2).gif");
    ui->label_5->setMovie(mv);
    mv->start();
    ui->label_5->setScaledContents(true);
}
Widget::~Widget()
{
    delete ui;
}
        SYEAM 2024-03-21 20-05-45