Alkimia API
12#include <alkimia/alk_export.h>
14#if defined(BUILD_WITH_WEBENGINE)
16#include <QWebEngineView>
26class ALK_EXPORT
AlkWebView :
public QWebEngineView
30 explicit AlkWebView(QWidget *parent =
nullptr);
31 virtual ~AlkWebView();
33 void load(
const QUrl &url);
34 static void setWebInspectorEnabled(
bool state);
35 static bool webInspectorEnabled();
36 AlkWebPage *webPage();
37 void setWebPage(AlkWebPage *webPage);
40 void loadRedirectedTo(
const QUrl &url);
43 void contextMenuEvent(QContextMenuEvent *event)
override;
46#elif defined(BUILD_WITH_WEBKIT)
62 explicit AlkWebView(QWidget *parent =
nullptr);
63 virtual ~AlkWebView();
65 void setWebInspectorEnabled(
bool enable);
66 bool webInspectorEnabled();
67 AlkWebPage *webPage();
68 void setWebPage(AlkWebPage *webPage);
71 void loadRedirectedTo(
const QUrl &url);
76#include <QTextBrowser>
91 virtual ~AlkWebView();
93 void load(
const QUrl &url);
94 void setHtml(
const QString &data,
const QUrl &baseUrl);
95 void setUrl(
const QUrl &url);
96 void setWebInspectorEnabled(
bool enable);
97 bool webInspectorEnabled();
103 void loadFinished(
bool);
104 void loadRedirectedTo(
const QUrl &to);
108 QVariant loadResource(
int type,
const QUrl &name)
override;
The AlkWebPage class provides an object to load and view web documents to provide functionality like ...
The AlkWebView class provides a widget that is used to load and display web documents.
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
QObject * parent() const const
QTextBrowser(QWidget *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:59:03 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.