#ifndef CWEBENGINEVIEW_H #define CWEBENGINEVIEW_H #include class QWidget; class CWebEngineView : public QWebEngineView { Q_OBJECT public: CWebEngineView(QWidget *parent = nullptr); ~CWebEngineView(); protected: // 解决错误:qt No RenderWidgetHost exists with id 10 in process 3 virtual QWebEngineView *createWindow(QWebEnginePage::WebWindowType type); }; #endif // CWEBENGINEVIEW_H