QgsWebPage class

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

Base classes

class QWebPage
The QWebPage class is a collection of stubs to mimic the API of a QWebPage on systems where QtWebkit is not available.

Constructors, destructors, conversion operators

QgsWebPage(QObject* parent = nullptr) explicit
Constructor for QgsWebPage.

Public functions

auto identifier() const -> QString
Returns the QgsWebPage's identifier.
void setIdentifier(const QString& identifier)
Sets an identifier for the QgsWebPage.

Function documentation

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

Constructor for QgsWebPage.

Parameters
parent parent object

QString QgsWebPage::identifier() const

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.

void QgsWebPage::setIdentifier(const QString& identifier)

Sets an identifier for the QgsWebPage.

Parameters
identifier identifier string

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.