40 lines
725 B
C++
40 lines
725 B
C++
#ifndef SYSTEMSELFCHECK_H
|
|
#define SYSTEMSELFCHECK_H
|
|
|
|
#include <QWidget>
|
|
#include <QtCharts>
|
|
#include <QtCharts/QPieSeries>
|
|
#include <QtCharts/QPieSlice>
|
|
|
|
namespace Ui {
|
|
class CSystemSelfcheck;
|
|
}
|
|
|
|
class CSystemSelfcheck : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CSystemSelfcheck(QWidget *parent = nullptr);
|
|
~CSystemSelfcheck();
|
|
|
|
private:
|
|
Ui::CSystemSelfcheck *ui;
|
|
QChartView * m_ChartView;
|
|
QLabel * m_centerLabel;
|
|
|
|
private slots:
|
|
//网络请求数据响应
|
|
void slotNetMgr(QString sAddr,const QVariant& msg);
|
|
|
|
|
|
void initPieChart();
|
|
void bulidPieChart(int percent);
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
|
|
void on_pushButton_check_clicked();
|
|
};
|
|
|
|
#endif // SYSTEMSELFCHECK_H
|