QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 216 of file qgswebpage.h.
|
inlineexplicit |
Constructor for QgsWebPage.
parent | parent object |
Definition at line 226 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 244 of file qgswebpage.h.
|
inlineoverrideprotected |
Definition at line 248 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 237 of file qgswebpage.h.