mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-08-21 03:42:23 +08:00
22 lines
371 B
C++
22 lines
371 B
C++
#ifndef WEBENGINEVIEW_H
|
|
#define WEBENGINEVIEW_H
|
|
|
|
#include <QWebEngineView>
|
|
|
|
class WebEngineView : public QWebEngineView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WebEngineView(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
QWebEngineView *createWindow(QWebEnginePage::WebWindowType type) override;
|
|
|
|
private slots:
|
|
void on_urlChanged(QUrl url);
|
|
|
|
};
|
|
|
|
#endif // WEBENGINEVIEW_H
|