WebEngineViewer::WebEnginePage

Search for usage in LXR

WebEngineViewer::WebEnginePage Class Reference

#include <webenginepage.h>

Inheritance diagram for WebEngineViewer::WebEnginePage:

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
 
WebEngineViewer::WebHitTesthitTestContent (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.

Author
Laurent Montel monte.nosp@m.l@kd.nosp@m.e.org

Definition at line 21 of file webenginepage.h.

Constructor & Destructor Documentation

◆ WebEnginePage() [1/2]

WebEnginePage::WebEnginePage ( QObject * parent = nullptr)
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
parentThe parent object

Definition at line 35 of file webenginepage.cpp.

◆ WebEnginePage() [2/2]

WebEnginePage::WebEnginePage ( QWebEngineProfile * profile,
QObject * parent = nullptr )
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
profileThe profile to be used
parentThe parent object
Deprecated
Use the single argument constructor, which creates and uses a private profile.

Definition at line 58 of file webenginepage.cpp.

◆ ~WebEnginePage()

WebEnginePage::~WebEnginePage ( )
overridedefault

Destructor.

If there is a private QWebEngineProfile then it will also be destroyed.

Member Function Documentation

◆ acceptNavigationRequest()

bool WebEnginePage::acceptNavigationRequest ( const QUrl & url,
NavigationType type,
bool isMainFrame )
nodiscardoverrideprotected

Definition at line 168 of file webenginepage.cpp.

◆ eventFilter()

bool WebEnginePage::eventFilter ( QObject * obj,
QEvent * event )
nodiscardoverrideprotected

Definition at line 81 of file webenginepage.cpp.

◆ hitTestContent()

WebEngineViewer::WebHitTest * WebEnginePage::hitTestContent ( const QPoint & pos)
nodiscard

Definition at line 147 of file webenginepage.cpp.

◆ javaScriptConsoleMessage()

void WebEnginePage::javaScriptConsoleMessage ( JavaScriptConsoleMessageLevel level,
const QString & message,
int lineNumber,
const QString & sourceID )
overrideprotected

Definition at line 177 of file webenginepage.cpp.

◆ mapToViewport()

QPoint WebEnginePage::mapToViewport ( const QPoint & pos) const
nodiscard

Definition at line 152 of file webenginepage.cpp.

◆ refreshCssVariablesScript()

QString WebEnginePage::refreshCssVariablesScript ( )
nodiscardprotected

Definition at line 99 of file webenginepage.cpp.

◆ saveHtml()

void WebEnginePage::saveHtml ( QWebEngineDownloadRequest * download)

Definition at line 157 of file webenginepage.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 11:49:57 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.