Alkimia API
12#include <alkimia/alk_export.h>
18#if defined(BUILD_WITH_WEBENGINE)
20#include <QWebEnginePage>
29class ALK_EXPORT
AlkWebPage :
public QWebEnginePage
33 explicit AlkWebPage(QWidget *parent =
nullptr);
34 virtual ~AlkWebPage();
36 void load(
const QUrl &url,
const QString &acceptLanguage);
38 QStringList getAllElements(
const QString &symbol);
39 QString getFirstElement(
const QString &symbol);
41 void setTimeout(
int timeout = -1);
45 void loadRedirectedTo(
const QUrl &url);
51 bool acceptNavigationRequest(
const QUrl &url, NavigationType type,
bool isMainFrame)
override;
54#elif defined(BUILD_WITH_WEBKIT)
69 explicit AlkWebPage(QObject *parent =
nullptr);
70 virtual ~AlkWebPage();
72 void load(
const QUrl &url,
const QString &acceptLanguage);
73 void setHtml(
const QString &data);
75 QStringList getAllElements(
const QString &symbol);
76 QString getFirstElement(
const QString &symbol);
77 void setTimeout(
int timeout = -1) { Q_UNUSED(timeout) }
78 int timeout() {
return -1; }
81 void loadRedirectedTo(
const QUrl&);
90#include <QTextBrowser>
104 virtual ~AlkWebPage();
106 void load(
const QUrl &url,
const QString &acceptLanguage);
107 void setUrl(
const QUrl &url);
110 void setTimeout(
int timeout = -1) { Q_UNUSED(timeout) }
111 int timeout() {
return -1; }
115 void loadFinished(
bool);
116 void loadRedirectedTo(
const QUrl&);
121 QVariant loadResource(
int type,
const QUrl &name)
override;
The AlkWebPage class provides an object to load and view web documents to provide functionality like ...
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
Trait::String toHtml(std::shared_ptr< Document< Trait > > doc, bool wrapInBodyTag=true, const typename Trait::String &hrefForRefBackImage={}, bool wrapInArticle=true)
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.