QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
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. More...
 
QString identifier () const
 Returns the QgsWebPage's identifier. More...
 
void setIdentifier (const QString &identifier)
 Sets an identifier for the QgsWebPage. More...
 

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 216 of file qgswebpage.h.

Constructor & Destructor Documentation

◆ QgsWebPage()

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

Constructor for QgsWebPage.

Parameters
parentparent object

Definition at line 226 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 244 of file qgswebpage.h.

◆ javaScriptConsoleMessage()

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

Definition at line 248 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 237 of file qgswebpage.h.


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