#include "lowerbottomwidget.h"
#include <QFont>
#include <QPalette>
#include <QLabel>
#include <lowerspeedbutton.h>
#include <lowersafecheckbutton.h>
#include <QLabel>
#include <buttonwithname.h>
#include <QHBoxLayout>
LowerBottomWidget::LowerBottomWidget(QWidget *parent) :
QWidget(parent)
{
setAutoFillBackground(true);
QPalette palette;
palette.setBrush(this->backgroundRole(), QColor(255,255,255));
this->setPalette(palette);
Layout = new QVBoxLayout(this);
}
LowerBottomWidget *LowerBottomWidget::factory(LowerBottomWidget::widgetT Type, QWidget *parent)
{
LowerBottomWidget *BottomWidget;
if (Type == speed){
BottomWidget = new LowerBottomWidget(parent);
lowerSpeedButton *btnstart = lowerSpeedButton::factory(1, BottomWidget);
lowerSpeedButton *btnsys = lowerSpeedButton::factory(2, BottomWidget);
lowerSpeedButton *btnnet = lowerSpeedButton::factory(3, BottomWidget);
lowerSpeedButton *btndisk = lowerSpeedButton::factory(4, BottomWidget);
QFont ft;
ft.setPointSize(15);
ft.setBold(true);
QPalette palette;
palette.setColor(QPalette::WindowText, Qt::black);
QLabel *startTopLabel = new QLabel(tr("开机加速"), parent);
QLabel *sysTopLabel = new QLabel(tr("系统加速"), parent);
QLabel *netTopLabel = new QLabel(tr("网络加速"), parent);
QLabel *diskTopLabel = new QLabel(tr("硬盘加速"), parent);
startTopLabel->setFont(ft);
startTopLabel->setPalette(palette);
sysTopLabel->setFont(ft);
sysTopLabel->setPalette(palette);
netTopLabel->setFont(ft);
netTopLabel->setPalette(palette);
diskTopLabel->setFont(ft);
diskTopLabel->setPalette(palette);
ft.setPointSize(11);
ft.setBold(false);
palette.setColor(QPalette::WindowText, Qt::gray);
QLabel *startBtmLabel = new QLabel(tr("优化软件自动启动状态"), parent);
QLabel *sysBtmLabel = new QLabel(tr("优化系统与内存设置"), parent);
QLabel *netBtmLabel = new QLabel(tr("优化网络配置与性能"), parent);
QLabel *diskBtmLabel = new QLabel(tr("优化硬盘传输速率"), parent);
startBtmLabel->setFont(ft);
startBtmLabel->setPalette(palette);
sysBtmLabel->setFont(ft);
sysBtmLabel->setPalette(palette);
netBtmLabel->setFont(ft);
netBtmLabel->setPalette(palette);
diskBtmLabel->setFont(ft);
diskBtmLabel->setPalette(palette);
int spacing(5);
QVBoxLayout *startLayout = new QVBoxLayout;
startLayout->addWidget(btnstart, 0, Qt::AlignHCenter);
startLayout->addWidget(startTopLabel, 0, Qt::AlignHCenter);
startLayout->addWidget(startBtmLabel, 0, Qt::AlignHCenter);
startLayout->setSpacing(spacing);
startLayout->setMargin(0);
QVBoxLayout *systLayout = new QVBoxLayout;
systLayout->addWidget(btnsys, 0, Qt::AlignHCenter);
systLayout->addWidget(sysTopLabel, 0, Qt::AlignHCenter);
systLayout->addWidget(sysBtmLabel, 0, Qt::AlignHCenter);
systLayout->setSpacing(spacing);
systLayout->setMargin(0);
QVBoxLayout *netLayout = new QVBoxLayout;
netLayout->addWidget(btnnet, 0, Qt::AlignHCenter);
netLayout->addWidget(netTopLabel, 0, Qt::AlignHCenter);
netLayout->addWidget(netBtmLabel, 0, Qt::AlignHCenter);
netLayout->setSpacing(spacing);
netLayout->setMargin(0);
QVBoxLayout *diskLayout = new QVBoxLayout;
diskLayout->addWidget(btndisk, 0, Qt::AlignHCenter);
diskLayout->addWidget(diskTopLabel, 0, Qt::AlignHCenter);
diskLayout->addWidget(diskBtmLabel, 0, Qt::AlignHCenter);
diskLayout->setSpacing(spacing);
diskLayout->setMargin(0);
QVBoxLayout *btnlayout = new QVBoxLayout;
QHBoxLayout *hbtnlayout = new QHBoxLayout;
hbtnlayout->addStretch(10);
hbtnlayout->addLayout(startLayout, 0);
hbtnlayout->addLayout(systLayout, 0);
hbtnlayout->addLayout(netLayout, 0);
hbtnlayout->addLayout(diskLayout, 0);
hbtnlayout->addStretch(10);
hbtnlayout->setSpacing(70);
hbtnlayout->setContentsMargins(0, 10, 0, 0);
btnlayout->addStretch(10);
btnlayout->addLayout(hbtnlayout, 0);
btnlayout->addStretch(10);
BottomWidget->InsertLayout(btnlayout, 0, 0);
}else if (Type == safe){
BottomWidget = new LowerBottomWidget(parent);
lowerSafeCheckButton *scan_custom =
new lowerSafeCheckButton(":/background/scan_button_custom.png"
,":/background/scan_button_custom_hover.png",
BottomWidget);
lowerSafeCheckButton *scan_full =
new lowerSafeCheckButton(":/background/scan_button_full.png"
,":/background/scan_button_full_hover.png",
BottomWidget);
lowerSafeCheckButton *scan_quick =
new lowerSafeCheckButton(":/background/scan_button_quick.png"
,":/background/scan_button_quick_hover.png",
BottomWidget);
QFont ft;
ft.setPointSize(11);
QLabel *customLabel = new QLabel(tr("自定义扫描"), parent);
QLabel *quickLabel = new QLabel(tr("快速扫描"), parent);
QLabel *fullLabel = new QLabel(tr("全盘扫描"), parent);
customLabel->setFont(ft);
quickLabel->setFont(ft);
fullLabel->setFont(ft);
int spacing = 20;
QVBoxLayout *customLayout = new QVBoxLayout;
QVBoxLayout *quickLayout = new QVBoxLayout;
QVBoxLayout *fullLayout = new QVBoxLayout;
customLayout->addWidget(scan_custom, 0, Qt::AlignHCenter);
customLayout->addWidget(customLabel, 0, Qt::AlignHCenter);
customLayout->setSpacing(spacing);
customLayout->setMargin(0);
quickLayout->addWidget(scan_quick, 0, Qt::AlignHCenter);
quickLayout->addWidget(quickLabel, 0, Qt::AlignHCenter);
quickLayout->setSpacing(spacing);
quickLayout->setMargin(0);
fullLayout->addWidget(scan_full, 0, Qt::AlignHCenter);
fullLayout->addWidget(fullLabel, 0, Qt::AlignHCenter);
fullLayout->setSpacing(spacing);
fullLayout->setMargin(0);
QVBoxLayout *vbtmLayout = new QVBoxLayout;
QHBoxLayout *hbtmlayout = new QHBoxLayout;
hbtmlayout->addStretch(10);
hbtmlayout->addLayout(quickLayout,0);
hbtmlayout->addLayout(fullLayout, 0);
hbtmlayout->addLayout(customLayout, 0);
hbtmlayout->addStretch(10);
hbtmlayout->setSpacing(150);
hbtmlayout->setMargin(0);
vbtmLayout->addStretch(10);
vbtmLayout->addLayout(hbtmlayout, 0);
vbtmLayout->addStretch(10);
vbtmLayout->setSpacing(0);
vbtmLayout->setMargin(0);
ButtonWithName *fixBtn = new ButtonWithName(":/background/system_fix.png",
4, parent, 1, tr("常规修复"));
ButtonWithName *patchBtn = new ButtonWithName(":/background/system_patch.png",
4, parent, 1, tr("漏洞修复"));
fixBtn->setSpacing(10);
patchBtn->setSpacing(10);
QHBoxLayout *BtnLayout = new QHBoxLayout;
BtnLayout->addStretch(10);
BtnLayout->addWidget(fixBtn, 0);
BtnLayout->addWidget(patchBtn, 0);
BtnLayout->setSpacing(10);
BtnLayout->setContentsMargins(0, 0, 0, 23);
BottomWidget->addStretch(10);
Bott
没有合适的资源?快使用搜索试试~ 我知道了~
基于Qt+C++实现的跨平台360 GUI桌面应用+源码(毕业设计&课程设计&项目开发)
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共2000个文件
png:1901个
xml:51个
h:19个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 12 浏览量
2024-08-19
20:33:33
上传
评论
收藏 15.02MB ZIP 举报
温馨提示
基于Qt+C++实现的跨平台360 GUI桌面应用+源码,适合毕业设计、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~ 基于Qt+C++实现的跨平台360 GUI桌面应用+源码,适合毕业设计、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~ 基于Qt+C++实现的跨平台360 GUI桌面应用+源码,适合毕业设计、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~ 基于Qt+C++实现的跨平台360 GUI桌面应用+源码,适合毕业设计、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~ 基于Qt+C++实现的跨平台360 GUI桌面应用+源码,适合毕业设计、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~ 基于Qt+C++实现的跨平台360 GUI桌面应用+源码,适合毕业设计、课程设计、项目开发。项目源码已经过严格测试,可以放心参考并在此基础上延申使用~
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/554c939cfade481faacd75fffe0bdc52_cs1395293598.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
梦回阑珊
- 粉丝: 4495
- 资源: 1647
![benefits](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-1.c8e153b4.png)
下载权益
![privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-2.ec46750a.png)
C知道特权
![article](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-3.fc5e5fb6.png)
VIP文章
![course-privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-4.320a6894.png)
课程特权
![rights](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-icon.fe0226a8.png)
开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)