当前位置: 首页 > news >正文

2024.9.28 作业+思维导图

widget.cpp

#include "widget.h"Widget::Widget(QWidget *parent): QWidget(parent)
{this->setFixedSize(320,448);this->setWindowFlag(Qt::FramelessWindowHint);//QPushButtonQPushButton *PushButton1 = new QPushButton("登录",this);PushButton1->move(30,320);PushButton1->setFixedSize(261,41);QPushButton *PushButton2 = new QPushButton("扫码登录",this);PushButton2->move(90,400);PushButton2->setFixedSize(61,20);QPushButton *PushButton3 = new QPushButton("更多选项",this);PushButton3->move(170,400);PushButton3->setFixedSize(61,21);QPushButton *PushButton4 = new QPushButton("/",this);PushButton4->move(260,0);PushButton4->setFixedSize(31,31);QPushButton *PushButton5 = new QPushButton("x",this);PushButton5->move(290,0);PushButton5->setFixedSize(31,31);//LineEditQLineEdit *LineEdit1 = new QLineEdit(this);LineEdit1->setPlaceholderText("输入QQ号");LineEdit1->move(30,170);LineEdit1->setFixedSize(261,41);QLineEdit *LineEdit2 = new QLineEdit(this);LineEdit2->setPlaceholderText("输入QQ密码");LineEdit2->move(30,220);LineEdit2->setFixedSize(261,41);//QLabelQLabel *QLable1 = new QLabel(this);//QLable1->setText("LOGO");QLable1->move(120,60);QLable1->setFixedSize(81,81);QLable1->setStyleSheet("background-color:skyblue");//QComboBoxQComboBox *QComboBox1 = new QComboBox(this);QComboBox1->move(250,170);QComboBox1->setFixedSize(41,41);//QRadioButtonQRadioButton *RadioButton1 = new QRadioButton(this);RadioButton1->setText("已阅读并同意服务协议和QQ隐私保护指引");RadioButton1->move(40,280);RadioButton1->setFixedSize(241,18);
}Widget::~Widget()
{
}

widget.h

#ifndef WIDGET_H
#define WIDGET_H#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QGraphicsView>
#include <QRadioButton>
#include <QMouseEvent>class Widget : public QWidget
{Q_OBJECTpublic:Widget(QWidget *parent = nullptr);~Widget();
};
#endif // WIDGET_H

效果图

思维导图

 做一半手贱删了还没保存,先欠着

http://www.lryc.cn/news/448910.html

相关文章:

  • 树莓派外挂Camera(基操)(TODO)
  • 讯飞星火编排创建智能体学习(二)决策节点
  • YOLOv5改进:Unified-loU,用于高品质目标检测的统一loU ,2024年8月最新IoU
  • 力扣 简单 112.路径总和
  • OpenMV与STM32通信全面指南
  • Python库matplotlib之二
  • DAY17||654.最大二叉树 |617.合并二叉树 |700.二叉搜索树中的搜索 |
  • 读构建可扩展分布式系统:方法与实践16读后总结与感想兼导读
  • Anaconda 安装
  • 优雅使用 MapStruct 进行类复制
  • 第19周JavaWeb编程实战-MyBatis实现OA系统 1-OA系统
  • 仿黑神话悟空跑动-脚下波纹特效(键盘wasd控制走动)
  • `torch.utils.data`模块
  • 深入理解 `strncat()` 函数:安全拼接字符串
  • OpenCV_自定义线性滤波(filter2D)应用详解
  • 设计模式之装饰模式(Decorator)
  • 大数据-146 Apache Kudu 安装运行 Dockerfile 模拟集群 启动测试
  • React入门准备
  • robomimic基础教程(四)——开源数据集
  • 胤娲科技:AI界的超级充电宝——忆阻器如何让LLM告别电量焦虑
  • 前端大模型入门:使用Transformers.js手搓纯网页版RAG(二)- qwen1.5-0.5B - 纯前端不调接口
  • K-means聚类分析对比
  • tar命令:压缩、解压的好工具
  • Mac电脑上最简单安装Python的方式
  • Linux基础命令cd详解
  • 【大模型对话 的界面搭建-Open WebUI】
  • 如何在算家云搭建text-generation-webui(文本生成)
  • 【Java SE】初遇Java,数据类型,运算符
  • XSS(内含DVWA)
  • 【SpringCloud】环境和工程搭建