mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-07-23 14:02:22 +08:00
27 lines
610 B
C++
27 lines
610 B
C++
#ifndef WEBENGINEVIEW_H
|
|
#define WEBENGINEVIEW_H
|
|
|
|
#include <QWebEngineView>
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
|
|
#include <QWebEngineNotification>
|
|
#endif
|
|
|
|
// class WebEngineUrlRequestInterceptor;
|
|
class WebEngineView : public QWebEngineView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WebEngineView(QWidget *parent = nullptr);
|
|
|
|
static void handleChromiumFlags();
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
|
|
static void present(std::unique_ptr<QWebEngineNotification> &newNotification);
|
|
#endif
|
|
|
|
private:
|
|
// WebEngineUrlRequestInterceptor *interceptor = nullptr;
|
|
};
|
|
|
|
#endif // WEBENGINEVIEW_H
|