• 大小: 2.56MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-29
  • 语言: C/C++
  • 标签: 源代码  C++  QT  

资源简介

采用QT 5.9 C++编写,完全仿照360安全卫士9.1 版本。包含了两个主功能页面的切换。资料搜集自互联网,所有权属原作者,侵删。

资源截图

代码片段和文件信息

#include “about_us.h“ 
#include “util.h“

AboutUsDialog::AboutUsDialog(QWidget *parent)
: DropShadowWidget(parent)
{
this->setFixedSize(520 290);
this->init();

QHBoxLayout *title_layout = new QHBoxLayout();
title_layout->addWidget(title_icon_label 0 Qt::AlignVCenter);
title_layout->addWidget(title_label 0 Qt::AlignVCenter);
title_layout->addStretch();
title_layout->addWidget(close_button 0 Qt::AlignTop);
title_layout->setSpacing(5);
title_layout->setContentsMargins(10 0 5 0);

QVBoxLayout *v_layout = new QVBoxLayout();
v_layout->addWidget(title_info_label);
v_layout->addWidget(info_label);
v_layout->addWidget(version_label);
v_layout->addWidget(mummy_label);
v_layout->addWidget(copyright_label);
v_layout->addStretch();
v_layout->setSpacing(5);
v_layout->setContentsMargins(0 15 0 0);
info_label->setContentsMargins(0 0 0 40);

QHBoxLayout *bottom_layout = new QHBoxLayout();
bottom_layout->addStretch();
bottom_layout->addWidget(ok_button);
bottom_layout->setSpacing(0);
bottom_layout->setContentsMargins(0 0 30 20);

QHBoxLayout *h_layout = new QHBoxLayout();
h_layout->addLayout(v_layout);
h_layout->addWidget(icon_label);
h_layout->setSpacing(0);
h_layout->setContentsMargins(40 0 20 10);

QVBoxLayout *main_layout = new QVBoxLayout();
main_layout->addLayout(title_layout);
main_layout->addStretch();
main_layout->addLayout(h_layout);
main_layout->addLayout(bottom_layout);
main_layout->setSpacing(0);
main_layout->setContentsMargins(SHADOW_WIDTH SHADOW_WIDTH SHADOW_WIDTH SHADOW_WIDTH);

connect(ok_button SIGNAL(clicked()) this SLOT(hide()));
connect(close_button SIGNAL(clicked()) this SLOT(hide()));

this->setLayout(main_layout);
this->translateLanguage();
}

void AboutUsDialog::init()
{
title_label = new QLabel();
title_icon_label = new QLabel();
title_info_label = new QLabel();
info_label = new QLabel();
version_label = new QLabel();
mummy_label = new QLabel();
copyright_label = new QLabel();
icon_label = new QLabel();
close_button = new PushButton();
ok_button = new QPushButton();

QPixmap title_pixmap(“:/img/safe“);
title_icon_label->setPixmap(title_pixmap);
title_icon_label->setFixedSize(16 16);
title_icon_label->setScaledContents(true);

close_button->setPicName(QString(“:/sysButton/close“));

title_label->setFixedHeight(30);
ok_button->setFixedSize(75 25);
QPixmap pixmap(“:/img/360safe“);
icon_label->setPixmap(pixmap);
icon_label->setFixedSize(pixmap.size());

title_label->setobjectName(“whiteLabel“);
copyright_label->setobjectName(“grayLabel“);
title_info_label->setobjectName(“infoLabel“);
info_label->setobjectName(“infoLabel“);
ok_button->setobjectName(“okButton“);

QFont title_info_font(“微软雅黑“ 14 QFont::Bold false);
title_info_label->setFont(title_info_font);

QFont info_font = info_label->font();
info_font.setBold(true);
info_label->setFont(info_f

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2581  2017-09-07 08:53  360safe_2\.gitattributes

     文件       3997  2017-09-07 08:53  360safe_2\.gitignore

     文件     109071  2017-09-03 17:39  360safe_2\360safe_2\360safe_2.vcxproj

     文件       3968  2013-10-14 12:42  360safe_2\360safe_2\about_us.cpp

     文件       1305  2013-10-14 13:04  360safe_2\360safe_2\about_us.h

     文件       1494  2013-07-26 17:50  360safe_2\360safe_2\account_item.cpp

     文件       1090  2013-10-14 13:11  360safe_2\360safe_2\account_item.h

     文件       2614  2013-10-12 13:25  360safe_2\360safe_2\change_skin_widget.cpp

     文件       1434  2013-10-14 13:04  360safe_2\360safe_2\change_skin_widget.h

     文件       6420  2013-10-14 12:17  360safe_2\360safe_2\character_widget.cpp

     文件       1553  2013-10-14 13:04  360safe_2\360safe_2\character_widget.h

     文件       2688  2013-06-21 17:05  360safe_2\360safe_2\clabel.cpp

     文件       1313  2013-10-14 13:04  360safe_2\360safe_2\clabel.h

    .......        60  2015-09-20 17:20  360safe_2\360safe_2\ClassDiagram.cd

     文件        705  2013-10-12 20:44  360safe_2\360safe_2\common.h

     文件      14081  2013-10-11 17:18  360safe_2\360safe_2\content_widget.cpp

     文件       2533  2013-10-14 13:04  360safe_2\360safe_2\content_widget.h

     文件       1483  2017-09-04 20:50  360safe_2\360safe_2\drop_shadow_widget.cpp

     文件        905  2013-10-14 13:04  360safe_2\360safe_2\drop_shadow_widget.h

     文件       3436  2013-10-12 18:26  360safe_2\360safe_2\kill_mummy_widget.cpp

     文件        957  2013-10-14 13:04  360safe_2\360safe_2\kill_mummy_widget.h

     文件       2098  2013-07-29 18:59  360safe_2\360safe_2\loading_widget.cpp

     文件       1058  2013-10-14 13:04  360safe_2\360safe_2\loading_widget.h

     文件      19988  2013-10-14 10:59  360safe_2\360safe_2\login_dialog.cpp

     文件       3025  2013-10-14 13:05  360safe_2\360safe_2\login_dialog.h

     文件        980  2017-09-04 20:12  360safe_2\360safe_2\main.cpp

     文件       3014  2013-10-12 11:06  360safe_2\360safe_2\main_menu.cpp

     文件       1178  2013-10-14 13:05  360safe_2\360safe_2\main_menu.h

     文件       6767  2017-09-07 09:52  360safe_2\360safe_2\main_widget.cpp

     文件       2451  2017-09-01 11:12  360safe_2\360safe_2\main_widget.h

............此处省略207个文件信息

评论

共有 条评论