mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 11:19:24 +08:00
28 lines
607 B
C
28 lines
607 B
C
|
|
#pragma once
|
|||
|
|
|
|||
|
|
#include "qt/MyQUI.h"
|
|||
|
|
#include <spdlog/sinks/base_sink.h>
|
|||
|
|
#include <QHBoxLayout>
|
|||
|
|
#include <QTableWidget>
|
|||
|
|
|
|||
|
|
|
|||
|
|
class QWHome : public MyWidget
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
public:
|
|||
|
|
QWHome(QWidget* parent);
|
|||
|
|
|
|||
|
|
|
|||
|
|
// 创建自定义sink
|
|||
|
|
//std::shared_ptr<QtTextSink> qtSink;
|
|||
|
|
|
|||
|
|
std::shared_ptr<QGroupBox> groupSys;
|
|||
|
|
std::shared_ptr<QGroupBox> groupHttp;
|
|||
|
|
std::shared_ptr<QGroupBox> groupMqtt;
|
|||
|
|
std::shared_ptr<QGroupBox> groupDB;
|
|||
|
|
std::shared_ptr<QTableWidget> table {};
|
|||
|
|
std::shared_ptr<QTextEdit> textLog;
|
|||
|
|
|
|||
|
|
void onTimer() override;
|
|||
|
|
void setTableCell(int row, int col, std::string text, std::string style = "");
|
|||
|
|
};
|