qtday1

#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    //设置窗口格式
    this->resize(540,420);
    this->setWindowFlag(Qt::FramelessWindowHint);
    //设置标签
    QLabel *lab1 = new QLabel(this);
    lab1->resize(540,160);
    QMovie *mv = new QMovie("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\xhr.gif");
    lab1->setMovie(mv);
    mv->start();
    lab1->setScaledContents(true);

    QLabel *lab2 = new QLabel(this);
    lab2->resize(50,50);
    lab2->move(5,5);
    lab2->setPixmap(QPixmap("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\xxx.png"));
    lab2->setScaledContents(true);

    QLabel *lab3 = new QLabel(this);
    lab3->resize(35,35);
    lab3->move(500,5);
    lab3->setPixmap(QPixmap("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\gb.png"));
    lab3->setScaledContents(true);

    QLabel *lab4 = new QLabel(this);
    lab4->resize(40,40);
    lab4->move(465,1);
    lab4->setPixmap(QPixmap("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\sx.png"));
    lab4->setScaledContents(true);

    QLabel *lab5 = new QLabel(this);
    lab5->resize(30,30);
    lab5->move(100,220);
    lab5->setPixmap(QPixmap("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\zh.png"));
    lab5->setScaledContents(true);

    QLineEdit *edit1 = new QLineEdit(this);
    edit1->resize(280,30);
    edit1->move(140,220);
    edit1->setPlaceholderText("账号");
    QLabel *lab6 = new QLabel(this);
    lab6->resize(30,30);
    lab6->move(100,260);
    lab6->setPixmap(QPixmap("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\mm.png"));
    lab6->setScaledContents(true);

    QLineEdit *edit2 = new QLineEdit(this);
    edit2->resize(280,30);
    edit2->move(140,260);
    edit2->setPlaceholderText("密码");
    edit2->setEchoMode(QLineEdit::Password);

    QLabel *lab7 = new QLabel("找回密码",this);
    lab7->resize(60,20);
    lab7->move(100,300);
    lab7->setScaledContents(true);
    QLabel *lab8 = new QLabel("修改密码",this);
    lab8->resize(60,20);
    lab8->move(230,300);
    lab8->setScaledContents(true);
    QLabel *lab9 = new QLabel("自动登陆",this);
    lab9->resize(60,20);
    lab9->move(360,300);
    lab9->setScaledContents(true);

    QPushButton *bton1 = new QPushButton("登陆",this);
    bton1->move(100,330);
    bton1->resize(330,45);
    bton1->setStyleSheet("background-color : rgb(252,221,18);border-radius : 10px");

    QLabel *lab10 = new QLabel(this);
    lab10->resize(70,70);
    lab10->setStyleSheet("border-radius : 35px");
    lab10->move(230,130);
    lab10->setPixmap(QPixmap("C:\\Users\\27871\\Desktop\\HQYJ\\qt\\pictrue\\tx.jpg"));
    lab10->setScaledContents(true);

}

MainWindow::~MainWindow()
{
}

qtday1_第1张图片

你可能感兴趣的:(数据库,nginx,运维)