WebEngineViewer::WebEnginePage
#include <webenginepage.h>

Signals | |
void | showConsoleMessage (const QString &message) |
void | urlClicked (const QUrl &url) |
Public Member Functions | |
WebEnginePage (QObject *parent=nullptr) | |
WEBENGINEVIEWER_DEPRECATED | WebEnginePage (QWebEngineProfile *profile, QObject *parent=nullptr) |
~WebEnginePage () override=default | |
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 |
void | javaScriptConsoleMessage (JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &sourceID) override |
Detailed Description
The WebEnginePage class.
Definition at line 21 of file webenginepage.h.
Constructor & Destructor Documentation
◆ WebEnginePage() [1/2]
|
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 23 of file webenginepage.cpp.
◆ WebEnginePage() [2/2]
|
explicit |
Constructor.
The specified QWebEngineProfile will be used. See the description of WebEnginePage(QObject *)
and the API documentation of QWebEnginePage for caution regarding the lifetime of the profile.
- Parameters
-
profile The profile to be used parent The parent object
- Deprecated:
- Use the single argument constructor, which creates and uses a private profile.
Definition at line 45 of file webenginepage.cpp.
◆ ~WebEnginePage()
|
overridedefault |
Destructor.
If there is a private QWebEngineProfile then it will also be destroyed.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:53:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.