3500/SystemSelfcheck.h

40 lines
725 B
C
Raw Permalink Normal View History

2023-04-14 19:30:30 +08:00
#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;
2023-04-27 19:48:15 +08:00
private slots:
//网络请求数据响应
void slotNetMgr(QString sAddr,const QVariant& msg);
2023-04-14 19:30:30 +08:00
void initPieChart();
void bulidPieChart(int percent);
void resizeEvent(QResizeEvent *event);
2023-04-27 19:48:15 +08:00
void on_pushButton_check_clicked();
2023-04-14 19:30:30 +08:00
};
#endif // SYSTEMSELFCHECK_H