This commit is contained in:
2026-03-03 16:10:38 +01:00
parent 35aae3b707
commit 5f0b7d3dc8
16 changed files with 766 additions and 334 deletions

View File

@@ -1,11 +1,13 @@
#include "webviewqt.h"
#include "webviewwindow.h"
#include <QWebEnginePage>
#include <QJsonDocument>
WebViewQt::WebViewQt(int id, QWidget *parent)
: QWebEngineView(parent)
WebViewQt::WebViewQt(int id, WebviewWindow *window)
: QWebEngineView(window)
{
_id = id;
_window = window;
}
int WebViewQt::id() const
@@ -13,8 +15,9 @@ int WebViewQt::id() const
return _id;
}
QString WebViewQt::runJs(const QString &js)
WebviewWindow *WebViewQt::wvWin()
{
return _window;
}