C++DAY46

cpp 复制代码
myWidget::myWidget(QWidget *parent)
    : QWidget(parent)
{

    this->resize(1280,720);
    this->setWindowTitle("300英雄");
    this->setWindowIcon(QIcon("D:/BaiduNetdiskDownload/孤独摇滚图标/1.png"));
    this->setStyleSheet("background-color:white");

    QLabel *lab1 = new QLabel(this);
    lab1->resize(1280,720);
    lab1->setPixmap(QPixmap("D:/Game/300hero_v202308312/LauncherCfg/PatchUINew/1.jpg"));
    lab1->setScaledContents(true);
    QLabel *lab2 = new QLabel(this);
    lab2->resize(140,140);
    lab2->move(1100,100);
    lab2->setPixmap(QPixmap("D:/BaiduNetdiskDownload/孤独摇滚图标/a.gif"));
    lab2->setStyleSheet("background-color:rgba(255, 255, 255, 0)");
    lab2->setScaledContents(true);
    QLabel *lab7 = new QLabel(this);
    lab7->resize(210,94);
    lab7->move(1,10);
    lab7->setPixmap(QPixmap("D:/BaiduNetdiskDownload/孤独摇滚图标/2.gif"));
    lab7->setStyleSheet("background-color:rgba(255, 255, 255, 0)");
    lab7->setScaledContents(true);

    QLineEdit *ed1 = new QLineEdit(this);
    ed1->move(1080,280);
    ed1->setPlaceholderText("账号");
    QLineEdit *ed2 = new QLineEdit(this);
    ed2->setEchoMode(QLineEdit::Password);
    ed2->move(1080,330);
    ed2->setPlaceholderText("密码");

    QLabel *lab3 = new QLabel(this);
    lab3->setText("记住账号");
    lab3->setStyleSheet("background-color:rgba(255, 255, 255, 50)");
    lab3->move(1090,370);
    QLabel *lab4 = new QLabel(this);
    lab4->setText("记住密码");
    lab4->move(1190,370);
    lab4->setStyleSheet("background-color:rgba(255, 255, 255, 50)");
    QLabel *lab5 = new QLabel(this);
    lab5->setText("注册账号");
    lab5->move(1140,400);
    lab5->setStyleSheet("background-color:rgba(255, 255, 255, 50)");
    QLabel *lab6 = new QLabel(this);
    lab6->setText("忘记密码");
    lab6->move(1140,420);
    lab6->setStyleSheet("background-color:rgba(255, 255, 255, 50)");

    QPushButton *btn1 = new QPushButton(this);
    btn1->setText("登录游戏");
    btn1->resize(90,40);
    btn1->move(1125,450);
    btn1->setStyleSheet("background-color:rgba(19,239,253)");





}
相关推荐
Scott9999HH5 小时前
【IIoT流量实战】蒸汽管道阀门全关却仍有流量?用 Python 实现涡街信号 FFT 频谱分析与温压全补偿积算网关,深度拆解靠谱的涡街流量计厂家硬核技术标准
开发语言·python
2401_841495646 小时前
【操作系统】进程同步与互斥实验报告
c++·算法·操作系统·进程·并发·同步·互斥
fqbqrr6 小时前
2607C++,soui与安卓
c++·soui
码智社6 小时前
AES加密原理详解及Java实现加解密实战
java·开发语言
AI云海6 小时前
python 列表、元组、集合和字典
开发语言·python
萧瑟余晖7 小时前
JDK 26 新特性详解
java·开发语言
马优晨8 小时前
Freemarker 完整讲解(后端 Java 模板引擎)
java·开发语言·freemarker·freemarker 完整讲解·freemarker模板引擎
fqbqrr9 小时前
2607C++,使用微软detours勾挂工具
c++
人邮异步社区9 小时前
怎么把C语言学到精通?
c语言·开发语言
心平气和量大福大10 小时前
C#-WPF-控件-TextBox 数据绑定
开发语言·c#·wpf