QGIS API Documentation  2.99.0-Master (3450a9f)
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsMessageLogViewer Class Reference

A generic dialog widget for displaying QGIS log messages. More...

#include <qgsmessagelogviewer.h>

Inheritance diagram for QgsMessageLogViewer:
Inheritance graph

Public Slots

void logMessage (const QString &message, const QString &tag, QgsMessageLog::MessageLevel level)
 Logs a message to the viewer. More...

Public Member Functions

 QgsMessageLogViewer (QWidget *parent=nullptr, Qt::WindowFlags fl=QgisGui::ModalDialogFlags)
 Create a new message log viewer. More...

Protected Member Functions

void closeEvent (QCloseEvent *e) override
void reject () override

Detailed Description

A generic dialog widget for displaying QGIS log messages.

Definition at line 34 of file qgsmessagelogviewer.h.

Constructor & Destructor Documentation

◆ QgsMessageLogViewer()

QgsMessageLogViewer::QgsMessageLogViewer ( QWidget *  parent = nullptr,
Qt::WindowFlags  fl = QgisGui::ModalDialogFlags 

Create a new message log viewer.

The viewer will automatically connect to the system's QgsApplication::messageLog() instance.

Definition at line 33 of file qgsmessagelogviewer.cpp.

Member Function Documentation

◆ closeEvent()

void QgsMessageLogViewer::closeEvent ( QCloseEvent *  e)

Definition at line 44 of file qgsmessagelogviewer.cpp.

◆ logMessage

void QgsMessageLogViewer::logMessage ( const QString &  message,
const QString &  tag,
QgsMessageLog::MessageLevel  level 

Logs a message to the viewer.

Definition at line 53 of file qgsmessagelogviewer.cpp.

◆ reject()

void QgsMessageLogViewer::reject ( )

Definition at line 49 of file qgsmessagelogviewer.cpp.

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