资源简介
使用QT C++ 检测系统的计算机名称、cpu、显卡、内存、操作系统、几个屏幕以及每个屏幕的分辨率、硬盘信息、IP、MAC地址、公网IP、以及是否能够联网等信息
详情与效果图见博客:https://blog.csdn.net/xiezhongyuan07/article/details/80249626
没有积分的小伙伴,评论留下邮箱,免费发送!

代码片段和文件信息
#pragma execution_character_set(“utf-8“)
#include “checkdlg.h“
#include
#include “ui_checkdlg.h“
#include “netserver.h“
#include
#include
#include
#include
#include
#include
CheckDlg::CheckDlg(QWidget *parent) :
CommonmoveDialog(parent)
ui(new Ui::CheckDlg)
m_successCount(0)
m_warningCount(0)
m_failedCount(0)
{
ui->setupUi(this);
initData();
initframe();
connection();
}
CheckDlg::~CheckDlg()
{
delete ui;
}
void CheckDlg::initframe()
{
this->resize(580 380);
ui->allValueLabel->setText(“0“);
ui->passValueLabel->setText(“0“);
ui->warningValueLabel->setText(“0“);
ui->faileValueLabel->setText(“0“);
ui->finishedLabel->setVisible(false);
ui->saveBtn->setEnabled(false);
ui->uploadCheckBox->setEnabled(false);
ui->progressBar->setValue(0);
this->setWindowFlags(Qt::framelessWindowHint);
ui->stackedWidget->setCurrentIndex(0);
ui->tableWidget->horizontalHeader()->setSectionresizeMode(0QHeaderView::Fixed);
ui->tableWidget->horizontalHeader()->setSectionresizeMode(1QHeaderView::Fixed);
ui->tableWidget->horizontalHeader()->setSectionresizeMode(2QHeaderView::Stretch);
ui->tableWidget->horizontalHeader()->setSectionresizeMode(3QHeaderView::Fixed);
ui->tableWidget->horizontalHeader()->resizeSection(0 20);
ui->tableWidget->horizontalHeader()->resizeSection(1 55);
ui->tableWidget->horizontalHeader()->resizeSection(2 80);
ui->tableWidget->horizontalHeader()->setSectionsClickable(false);
ui->tableWidget->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft | Qt::AlignVCenter);
m_pItemDelegate = new ItemDelegate();
ui->tableWidget->setItemDelegate(m_pItemDelegate);
int rowCount = m_itemNames.size();
ui->tableWidget->setRowCount(rowCount);
for(int i=0; i {
QString data;
QTableWidgetItem *item0 = new QTableWidgetItem();
item0->setData(Qt::UserRole Item_Status_Waitting);
ui->tableWidget->setItem(i1item0);
data = m_listItemsData.at(i).key;
QTableWidgetItem *item1 = new QTableWidgetItem();
item1->setData(Qt::DisplayRole data);
item1->setData(Qt::UserRole Item_Status_Waitting);
ui->tableWidget->setItem(i2item1);
data = m_itemsStatus[m_listItemsData.at(i).status];
QTableWidgetItem *item2 = new QTableWidgetItem();
item2->setData(Qt::DisplayRole data);
item2->setData(Qt::UserRole Item_Status_Waitting);
ui->tableWidget->setItem(i3item2);
}
}
void CheckDlg::connection()
{
connect(ui->startCheckBtn SIGNAL(clicked(bool)) this SLOT(startChecking()));
connect(ui->allLabel SIGNAL(clicked()) this SLOT(allLableClicked()));
connect(ui->allValueLabel SIGNAL(clicked()) this SLOT(allLableClicked
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-09 10:40 check\
文件 1308 2018-01-12 10:44 check\Check.pro
文件 969 2018-01-12 10:44 check\check.qrc
文件 24323 2018-03-09 17:33 check\checkdlg.cpp
文件 2170 2018-01-12 10:44 check\checkdlg.h
文件 41240 2018-05-09 10:40 check\checkdlg.ui
文件 327 2018-01-12 10:44 check\clickablelabel.cpp
文件 874 2018-01-12 10:44 check\clickablelabel.h
文件 922 2018-01-12 10:44 check\common
文件 524 2018-01-12 10:44 check\common
目录 0 2018-03-09 17:27 check\images\
文件 85684 2018-01-12 10:44 check\images\bck.png
文件 1214 2018-01-12 10:44 check\images\checked.png
文件 1209 2018-01-12 10:44 check\images\checkedDisable.png
文件 1179 2018-01-12 10:44 check\images\checking.png
文件 1037 2018-01-12 10:44 check\images\close.png
文件 1266 2018-01-12 10:44 check\images\close1.png
文件 1198 2018-01-12 10:44 check\images\faile.png
文件 4291 2018-01-12 10:44 check\images\logo.png
文件 972 2018-01-12 10:44 check\images\min.png
文件 1226 2018-01-12 10:44 check\images\min1.png
文件 1285 2018-01-12 10:44 check\images\pass.png
文件 1168 2018-01-12 10:44 check\images\ti
文件 1028 2018-01-12 10:44 check\images\unchecked.png
文件 1022 2018-01-12 10:44 check\images\uncheckedDisable.png
文件 1119 2018-01-12 10:44 check\images\warning.png
文件 15020 2018-01-12 10:44 check\info.cpp
文件 1723 2018-01-12 10:44 check\info.h
文件 4091 2018-01-12 10:44 check\itemdelegate.cpp
文件 374 2018-01-12 10:44 check\itemdelegate.h
文件 182 2018-01-12 10:44 check\main.cpp
............此处省略2个文件信息
- 上一篇:qt 遮罩背景
- 下一篇:waterProcess.zip
相关资源
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 计算机二级C语言上机填空,改错,编
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- QT上位机
- qt媒体播放器
- QT5开发及源代码
- qt完整项目
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- qt进度条(RoundProgressBar)
- Qt的纽带风格界面实现(Office Ribbon风
- qt 实现画板
- QT Hisi demo
- 基础qt数据库读取和显示
评论
共有 条评论