613作业

#include "mywidget.h"

MyWidget::MyWidget(QWidget *parent)
    : QWidget(parent)
{
    this->setWindowTitle("QQ");//窗口名
    this->setWindowIcon(QIcon("C:\\Users\\a8360\\Desktop\\4f603444-8a85-4d52-94d7-ab8c2f5f54a0.png"));
    this->resize(636,900);
    QLabel *lab1 = new QLabel(this);//背景图
    lab1->resize(636,950);
    lab1->setPixmap(QPixmap("C:\\Users\\a8360\\Desktop\\QQ截图20240613184234.png"));
    lab1->setScaledContents(1);
    QLabel *lab2 = new QLabel(this);//头像
    lab2->move(240,200);
    lab2->resize(150,150);
    lab2->setPixmap((QPixmap("C:\\Users\\a8360\\Desktop\\FEC3F6345EA0818BB10E1442043B2FF6.png")));
    lab2->setScaledContents(1);
    QLineEdit *edin1 = new QLineEdit(this);//账号框
    edin1->resize(400,50);
    edin1->move(120,430);
    edin1->setStyleSheet("background:transparent;border-width:9;border-style:ridge;border: 1px solid rgb(90,90,90);");
    edin1->setPlaceholderText("输入QQ号");
    QPalette palette = edin1->palette();
    palette.setColor(QPalette::Normal, QPalette::PlaceholderText, Qt::gray);
    edin1->setPalette(palette);
    QLineEdit *edin2 = new QLineEdit(this);//密码框
    edin2->resize(400,50);
    edin2->move(120,500);
    edin2->setStyleSheet("background:transparent;border-width:9;border-style:ridge;border: 1px solid rgb(90,90,90);");
    edin2->setPlaceholderText("输入QQ密码");
    edin2->setEchoMode(QLineEdit::Password);
    QPalette palette2 = edin2->palette();
    palette2.setColor(QPalette::Normal, QPalette::PlaceholderText, Qt::gray);
    edin2->setPalette(palette);
    QPushButton *btn1 = new QPushButton(this);//霸王条款按钮
    btn1->resize(15,20);
    btn1->move(90,575);
    QLineEdit *edin3 = new QLineEdit("已阅读并同意服务协议和QQ隐私保护指引",this);//霸王条款文本
    edin3->move(115,560);
    edin3->resize(450,50);
    edin3->setStyleSheet("background:transparent;border-width:0;border-style:ridge;""color: gray;");
    QPushButton *btn2 = new QPushButton(this);//登录按钮
    btn2->resize(400,50);
    btn2->move(120,650);
    btn2->setStyleSheet("background-color:rgb(30,48,98)");
    QLineEdit *edin4 = new QLineEdit("登录",this);//登录文本
    edin4->move(290,650);
    edin4->resize(100,50);
    edin4->setStyleSheet("background:transparent;border-width:0;border-style:ridge;""color: gray;");
    QLineEdit *edin5 = new QLineEdit("扫码登录   |   更多选项",this);//更多文本
    edin5->move(175,750);
    edin5->resize(400,50);
    edin5->setStyleSheet("background:transparent;border-width:0;border-style:ridge;""color: rgb(45,119,229);");

}

MyWidget::~MyWidget()
{
}

思维导图没时间写了,我就问你这界面做的ne~不ne~吧!

                                                                     (行不行吧!)

这可是第一天学了那么一点东西写的!

相关推荐

  1. <span style='color:red;'>613</span><span style='color:red;'>作业</span>

    613作业

    2024-06-13 23:56:01      35 阅读
  2. <span style='color:red;'>617</span><span style='color:red;'>作业</span>

    617作业

    2024-06-13 23:56:01      27 阅读
  3. 作业..........

    2024-06-13 23:56:01       55 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-13 23:56:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-13 23:56:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-13 23:56:01       82 阅读
  4. Python语言-面向对象

    2024-06-13 23:56:01       91 阅读

热门阅读

  1. 开源AI大模型项目推荐

    2024-06-13 23:56:01       38 阅读
  2. 如何理解分类任务中的logits?

    2024-06-13 23:56:01       31 阅读
  3. 浅谈学习数据结构-------顺序表的感受

    2024-06-13 23:56:01       25 阅读
  4. 为什么要选择AWS?AWS的优势有哪些?

    2024-06-13 23:56:01       26 阅读
  5. 【C++学习笔记 1】C++程序是怎样运行的

    2024-06-13 23:56:01       26 阅读
  6. 【无标题】计算机网络 4.2同轴电缆

    2024-06-13 23:56:01       28 阅读
  7. Spring Boot 的启动原理、Spring Boot 自动配置原理

    2024-06-13 23:56:01       32 阅读
  8. roles安装wordpress

    2024-06-13 23:56:01       30 阅读