QT登录界面

 

#include "widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
{

    this->setFixedSize(900,600);
    this->setWindowTitle("QQ");
    this->setWindowIcon(QIcon("C:\\Users\\huahua\\Documents\\Tencent Files\\2964248997\\FileRecv\\icon_z8w8m9orsdk\\QQ.png"));
    //this->setStyleSheet("background-color:skyblue");
    this->move(900,500);

    QPushButton *btn1=new QPushButton(QIcon("C:\\Users\\huahua\\Documents\\Tencent Files\\2964248997\\FileRecv\\icon_z8w8m9orsdk\\denglu_1.png"),"登录",this);
    btn1->resize(100,30);
    btn1->move(600,500);
    QPushButton *btn2=new QPushButton(QIcon("C:\\Users\\huahua\\Documents\\Tencent Files\\2964248997\\FileRecv\\icon_z8w8m9orsdk\\quxiao.png"),"取消",this);
    btn2->resize(100,30);
    btn2->move(750,500);

    QLabel *lab1=new QLabel(this);
    lab1->setPixmap(QPixmap("C:\\Users\\huahua\\Downloads\\24lywmlh.png"));
    lab1->resize(900,300);

    QLabel *lab2=new QLabel(this);
    lab2->setPixmap(QPixmap("C:\\Users\\huahua\\Documents\\Tencent Files\\2964248997\\FileRecv\\icon_z8w8m9orsdk\\denglu.png"));
    lab2->resize(40,40);
    lab2->move(230,330);
    lab2->setScaledContents(true);
    QLabel *lab3=new QLabel(this);
    lab3->setPixmap(QPixmap("C:\\Users\\huahua\\Documents\\Tencent Files\\2964248997\\FileRecv\\icon_z8w8m9orsdk\\denglumima.png"));
    lab3->resize(40,40);
    lab3->move(230,400);
    lab3->setScaledContents(true);

    QLineEdit *lin1=new QLineEdit(this);
    lin1->resize(240,40);
    lin1->move(280,330);
    lin1->setStyleSheet("border:none;");
    lin1->setPlaceholderText("QQ号/邮箱/手机号");

    QLineEdit *lin2=new QLineEdit(this);
    lin2->resize(240,40);
    lin2->move(280,400);
    lin2->setStyleSheet("border:none;");
    lin2->setPlaceholderText("密码");
    lin2->setEchoMode(QLineEdit::Password);

}

Widget::~Widget()
{

}

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值