QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log. More...
#include <qgswebpage.h>
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 |
QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log.
Definition at line 217 of file qgswebpage.h.
|
inlineexplicit |
Constructor for QgsWebPage.
parent | parent object |
Definition at line 227 of file qgswebpage.h.
|
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.
Definition at line 245 of file qgswebpage.h.
|
inlineoverrideprotected |
Definition at line 249 of file qgswebpage.h.
|
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.
identifier | identifier string |
Definition at line 238 of file qgswebpage.h.