WebEngineViewer::WebEnginePage
#include <webenginepage.h>
Signals | |
void | showConsoleMessage (const QString &message) |
void | urlClicked (const QUrl &url) |
Public Member Functions | |
WebEnginePage (QObject *parent=nullptr) | |
~WebEnginePage () override | |
WebEngineViewer::WebHitTest * | hitTestContent (const QPoint &pos) |
QPoint | mapToViewport (const QPoint &pos) const |
void | saveHtml (QWebEngineDownloadRequest *download) |
Protected Member Functions | |
bool | acceptNavigationRequest (const QUrl &url, NavigationType type, bool isMainFrame) override |
bool | eventFilter (QObject *obj, QEvent *event) override |
void | javaScriptConsoleMessage (JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &sourceID) override |
QString | refreshCssVariablesScript () |
Detailed Description
The WebEnginePage class.
Definition at line 20 of file webenginepage.h.
Constructor & Destructor Documentation
◆ WebEnginePage()
|
explicit |
Constructor.
A private QWebEngineProfile, only applying to this QWebEnginePage, will be created to implement browser settings. It can be accessed via profile()
, but it should not be shared or reused unless care is taken that the profile is not deleted until all of the QWebEnginePage's belonging to it are deleted first.
- Parameters
-
parent The parent object
Definition at line 35 of file webenginepage.cpp.
◆ ~WebEnginePage()
|
overridedefault |
Destructor.
If there is a private QWebEngineProfile then it will also be destroyed.
Member Function Documentation
◆ acceptNavigationRequest()
|
nodiscardoverrideprotected |
Definition at line 161 of file webenginepage.cpp.
◆ eventFilter()
Definition at line 74 of file webenginepage.cpp.
◆ hitTestContent()
|
nodiscard |
Definition at line 140 of file webenginepage.cpp.
◆ javaScriptConsoleMessage()
|
overrideprotected |
Definition at line 170 of file webenginepage.cpp.
◆ mapToViewport()
Definition at line 145 of file webenginepage.cpp.
◆ refreshCssVariablesScript()
|
nodiscardprotected |
Definition at line 92 of file webenginepage.cpp.
◆ saveHtml()
void WebEnginePage::saveHtml | ( | QWebEngineDownloadRequest * | download | ) |
Definition at line 150 of file webenginepage.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 11:58:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.