mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
37 lines
679 B
C++
37 lines
679 B
C++
#include <QMainWindow>
|
|
#include <QtWebEngineWidgets/QWebEngineView>
|
|
#include <QSplashScreen>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QHBoxLayout>
|
|
|
|
class MainWeb : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
MainWeb();
|
|
void initWebview();
|
|
void mySplash();
|
|
void showDevTools();
|
|
|
|
bool event(QEvent* e);
|
|
void keyPressEvent(QKeyEvent* event);
|
|
|
|
public:
|
|
QLabel labelWebErr;
|
|
|
|
QWebEngineView webView;
|
|
QWebEngineView devTools;
|
|
|
|
|
|
|
|
std::shared_ptr<QSplashScreen> splash;
|
|
QLabel label1;
|
|
QLabel labelProgress;
|
|
|
|
QLabel labelFullscreen;
|
|
QPushButton btnFullscreen;
|
|
bool isFullscreen = false;
|
|
|
|
QHBoxLayout* layout = NULL;
|
|
}; |