Day11.13

#include "widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    this->setWindowTitle("画江湖");
    this->setWindowIcon(QIcon("C:\\Users\\Flamingo\\Pictures\\newPicture\\blr.jpg"));
    this->resize(600,100);
    this->setFixedSize(600,1000);
    this->setStyleSheet("background-color:darkgrey");
    this->setWindowFlag(Qt::FramelessWindowHint);
    /*****************标签*****************/
    QLabel *lab1 = new QLabel(this);
    lab1->resize(600,382);
    QMovie *mv = new QMovie("C:\\Users\\Flamingo\\Pictures\\newPicture\\shaxia");
    lab1->setMovie(mv);
    mv->start();
    lab1->setScaledContents(true);

    QLabel *lab2 = new  QLabel(this);
    lab2->resize(50,50);
    lab2->move(20,20);
    lab2->setPixmap(QPixmap("C:\\Users\\Flamingo\\Pictures\\newPicture\\blr.jpg"));
    lab2->setStyleSheet("border-radius:25px");
    lab2->setScaledContents(true);

    QLabel *lab3 = new  QLabel(this);
    lab3->resize(100,100);
    lab3->move(250,350);
    lab3->setPixmap(QPixmap("C:\\Users\\Flamingo\\Pictures\\newPicture\\blr.jpg"));
    lab3->setStyleSheet("border-radius:50px");
    lab3->setScaledContents(true);

    QLabel *lab4 = new  QLabel(this);
    lab4->resize(50,50);
    lab4->move(100,550);
    lab4->setPixmap(QPixmap("C:\\Users\\Flamingo\\Downloads\\pictrue\\pictrue\\userName.jpg"));
    lab4->setScaledContents(true);

    QLabel *lab5 = new  QLabel(this);
    lab5->resize(50,50);
    lab5->move(100,650);
    lab5->setPixmap(QPixmap("C:\\Users\\Flamingo\\Downloads\\pictrue\\pictrue\\passwd.jpg"));
    lab5->setScaledContents(true);



    /***************************************/

    QLineEdit *edit1 = new QLineEdit(this);
    edit1->resize(300,50);
    edit1->move(180,550);
    edit1->setStyleSheet("background-color:white");

    QLineEdit *edit2 = new QLineEdit(this);
    edit2->resize(300,50);
    edit2->move(180,650);
    edit2->setStyleSheet("background-color:white");

    /****************************************/

    QPushButton *pbt1 = new QPushButton(this);
    pbt1->resize(300,50);
    pbt1->move(150,800);
    pbt1->setText("登录");
    pbt1->setStyleSheet("background-color:orange");

    QPushButton *pbt2 = new QPushButton(this);
    pbt2->resize(50,50);
    pbt2->move(550,0);
    pbt2->setText("×");
    pbt2->setStyleSheet("background-color:orange");

    QPushButton *pbt3 = new QPushButton(this);
    pbt3->resize(50,50);
    pbt3->move(500,0);
    pbt3->setText("-");
    pbt3->setStyleSheet("background-color:orange");

}

Widget::~Widget()
{
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值