#pragma once #include #include // Specialized view to handle "open in new tab" requests class BrowserView : public QWebEngineView { Q_OBJECT public: explicit BrowserView(QWidget *parent = nullptr); // Callback used when the engine wants to create a new window/tab std::function createTabCallback; protected: QWebEngineView *createWindow(QWebEnginePage::WebWindowType type) override; };