QT DAY1

#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);

    //this->resize(540,375);
    this->setFixedSize(540,375);
    this->setWindowTitle("QQ");
    this->setWindowIcon(QIcon("C:\\Users\\97059\\Desktop\\icon_nhgbq8i4bf\\QQ.png"));

    lab1 = new QLabel(this);
    lab1->resize(540,180);
    lab1->setScaledContents(true);
    lab1->setPixmap(QPixmap("C:\\Users\\97059\\Desktop\\icon_nhgbq8i4bf\\月亮船.jpg"));

    lab2 = new QLabel(this);
    lab2->resize(30,30);
    lab2->setScaledContents(true);
    lab2->setPixmap(QPixmap("C:\\Users\\97059\\Desktop\\icon_nhgbq8i4bf\\denglu.png"));
    lab2->move(150,180);

    lab3 = new QLabel(this);
    lab3->resize(30,30);
    lab3->setScaledContents(true);
    lab3->setPixmap(QPixmap("C:\\Users\\97059\\Desktop\\icon_nhgbq8i4bf\\denglumima.png"));
    lab3->move(150,230);

    edit1 = new QLineEdit(this);
    edit1->move(180,180);
    edit1->resize(200,30);
    edit1->setPlaceholderText("账号");

    edit2 = new QLineEdit(this);
    edit2->move(180,230);
    edit2->resize(200,30);
    edit2->setPlaceholderText("密码");
    edit2->setEchoMode(QLineEdit::Password);

    btn1 = new QPushButton(QIcon("C:\\Users\\97059\\Desktop\\icon_nhgbq8i4bf\\denglu_1.png"),"登录",this);
    btn2 = new QPushButton(QIcon("C:\\Users\\97059\\Desktop\\icon_nhgbq8i4bf\\quxiao.png"),"取消",this);
    btn3 = new QPushButton("注册账号",this);

    btn1->resize(235,40);
    btn1->move(150,300);
    btn1->setStyleSheet("background-color:#3299cc");
    btn2->move(430,340);
    btn3->move(15,340);

    check1 = new QCheckBox("自动登录",this);
    check2 = new QCheckBox("记住密码",this);
    check1->move(180,265);
    check2->move(300,265);


}

Widget::~Widget()
{
    delete ui;
}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值