mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
添加QT的webengineview开发者调试功能
This commit is contained in:
@@ -2,15 +2,32 @@
|
||||
#include <QtWebEngineWidgets/QWebEngineView>
|
||||
#include <QSplashScreen>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
|
||||
class MainWeb : public QMainWindow
|
||||
class MainWeb : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MainWeb();
|
||||
void initWebview();
|
||||
void mySplash();
|
||||
void showDevTools();
|
||||
|
||||
bool event(QEvent* e);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
|
||||
public:
|
||||
QWebEngineView webView;
|
||||
std::shared_ptr<QSplashScreen> splash {};
|
||||
QWebEngineView devTools;
|
||||
|
||||
std::shared_ptr<QSplashScreen> splash;
|
||||
QLabel label1;
|
||||
QLabel labelProgress;
|
||||
|
||||
QLabel labelFullscreen;
|
||||
QPushButton btnFullscreen;
|
||||
bool isFullscreen = false;
|
||||
|
||||
QHBoxLayout* layout = NULL;
|
||||
};
|
||||
Reference in New Issue
Block a user