mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
42 lines
638 B
C++
42 lines
638 B
C++
#include <QMainWindow>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
|
|
#include <QTimer>
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
#include <spdlog/sinks/base_sink.h>
|
|
#include <QObject>
|
|
#include <QPointer>
|
|
#include <QTextEdit>
|
|
#include <mutex>
|
|
|
|
#include "widgets/QWHome.h"
|
|
|
|
|
|
class MainApp : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
MainApp();
|
|
|
|
void setMyLayout();
|
|
|
|
|
|
private slots:
|
|
void onTimer();
|
|
|
|
public:
|
|
struct {
|
|
std::shared_ptr<LabelPair> weburl {};
|
|
std::shared_ptr<MyWidget> wigetHome;
|
|
} ui;
|
|
|
|
struct {
|
|
std::shared_ptr<QGridLayout> main;
|
|
} layout;
|
|
|
|
std::shared_ptr<QTimer> timer;
|
|
}; |