QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
QgsWebPage Class Reference

QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log. More...

#include <qgswebpage.h>

Inheritance diagram for QgsWebPage:
Inheritance graph
[legend]

Public Member Functions

 QgsWebPage (QObject *parent=nullptr)
 Constructor for QgsWebPage.
 
QString identifier () const
 Returns the QgsWebPage's identifier.
 
void setIdentifier (const QString &identifier)
 Sets an identifier for the QgsWebPage.
 

Protected Member Functions

void javaScriptConsoleMessage (const QString &message, int lineNumber, const QString &) override
 

Detailed Description

QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log.

Note
Not available in Python bindings
Since
QGIS 2.16

Definition at line 217 of file qgswebpage.h.

Constructor & Destructor Documentation

◆ QgsWebPage()

QgsWebPage::QgsWebPage ( QObject *  parent = nullptr)
inlineexplicit

Constructor for QgsWebPage.

Parameters
parentparent object

Definition at line 227 of file qgswebpage.h.

Member Function Documentation

◆ identifier()

QString QgsWebPage::identifier ( ) const
inline

Returns the QgsWebPage's identifier.

The page's identifier is included in messages written to the log so that users can identify which QgsWebPage has logged the message.

See also
setIdentifier()

Definition at line 245 of file qgswebpage.h.

◆ javaScriptConsoleMessage()

void QgsWebPage::javaScriptConsoleMessage ( const QString &  message,
int  lineNumber,
const QString &   
)
inlineoverrideprotected

Definition at line 249 of file qgswebpage.h.

◆ setIdentifier()

void QgsWebPage::setIdentifier ( const QString &  identifier)
inline

Sets an identifier for the QgsWebPage.

The page's identifier is included in messages written to the log, and should be set to a user-friendly string so that users can identify which QgsWebPage has logged the message.

Parameters
identifieridentifier string
See also
identifier()

Definition at line 238 of file qgswebpage.h.


The documentation for this class was generated from the following file: