QTday1

#include "my.h"
#include "ui_my.h"

my::my(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::my)
{
    ui->setupUi(this);
    this->setFixedSize(600,400);
    this->setWindowIcon(QIcon("F:\\hqyj\\QT\\icon\\icon_z8w8m9orsdk\\xx.png"));
    this->setWindowTitle("xx");
    this->setWindowOpacity(1);
   this->setStyleSheet("background-color: white");

    QLabel* label = new QLabel(this);
    label->setPixmap(QPixmap("F:\\hqyj\\QT\\icon\\icon\\11.jpg"));
    label->resize(600,150);
    label->setScaledContents(true);



    QLabel* label1 = new QLabel(this);
    label1->setPixmap(QPixmap("F:\\hqyj\\QT\\icon\\icon\\logo1.webp"));
    label1->resize(50,50);
    label1->setScaledContents(true);
    label1->move(5,5);



    QLabel* label2 = new QLabel(this);
    label2->setPixmap(QPixmap("F:\\hqyj\\QT\\icon\\icon_z8w8m9orsdk\\denglu.png"));
    label2->resize(20,20);
    label2->setScaledContents(true);
    label2->move(150,210);


    QLabel* label3 = new QLabel(this);
    label3->setPixmap(QPixmap("F:\\hqyj\\QT\\icon\\icon_z8w8m9orsdk\\denglumima.png"));
    label3->resize(20,20);
    label3->setScaledContents(true);
    label3->move(150,260);

    QLabel* label4 = new QLabel("找回密码",this);
    label4->resize(100,20);
    label4->move(450,300);

    label4->setStyleSheet("boder:none;");


    QLineEdit* edit = new QLineEdit(this);
    edit->move(180,210);
    edit->setEchoMode(QLineEdit::Normal);
    edit->resize(300,20);
    edit->setPlaceholderText("QQ号码/手机/邮箱");
    edit->setStyleSheet("border:none;border-bottom: 1px solid black;");

    QLineEdit* edit1 = new QLineEdit(this);
    edit1->move(180,260);
    edit1->setEchoMode(QLineEdit::PasswordEchoOnEdit);
    edit1->resize(edit->size());
    edit1->setPlaceholderText("密码");
    edit1->setStyleSheet("border:none;border-bottom: 1px solid black;");

    QCheckBox* box = new QCheckBox(this);
    box->move(150,300);
    box->resize(100,20);
    box->setText("自动登录");

    QCheckBox* box1 = new QCheckBox(this);
    box1->move(300,300);
    box1->resize(100,20);
    box1->setText("记住密码");

    QPushButton* button = new QPushButton("登录",this);
    button->move(150,330);
    button->resize(350,30);
    button->setStyleSheet("border-radius: 5px;background-color:skyblue;");

}

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

                     
       

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值