Marble
10#include <QWebEnginePage>
11#include <QWebEngineView>
13#include "marble_export.h"
15class MARBLE_EXPORT MarbleWebPage :
public QWebEnginePage
19 explicit MarbleWebPage(QObject *parent =
nullptr)
20 : QWebEnginePage(parent)
25 void linkClicked(
const QUrl &url);
28 bool acceptNavigationRequest(
const QUrl &url, QWebEnginePage::NavigationType type,
bool isMainFrame)
override
31 if (type == QWebEnginePage::NavigationTypeLinkClicked) {
32 emit linkClicked(url);
39class MARBLE_EXPORT MarbleWebView :
public QWebEngineView
43 explicit MarbleWebView(QWidget *parent =
nullptr);
46 void contextMenuEvent(QContextMenuEvent *event)
override;
47 void keyPressEvent(QKeyEvent *event)
override;
50 void copySelectedText();
54 QAction *m_copyAction;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:10 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.