QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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
[legend]

Public Slots

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

Public Member Functions

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

Protected Member Functions

void closeEvent (QCloseEvent *e) override
 
bool eventFilter (QObject *obj, QEvent *ev) override
 
void reject () override
 

Detailed Description

A generic dialog widget for displaying QGIS log messages.

Definition at line 36 of file qgsmessagelogviewer.h.

Constructor & Destructor Documentation

◆ QgsMessageLogViewer()

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

Create a new message log viewer.

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

Definition at line 36 of file qgsmessagelogviewer.cpp.

Member Function Documentation

◆ closeEvent()

void QgsMessageLogViewer::closeEvent ( QCloseEvent *  e)
overrideprotected

Definition at line 102 of file qgsmessagelogviewer.cpp.

◆ eventFilter()

bool QgsMessageLogViewer::eventFilter ( QObject *  obj,
QEvent *  ev 
)
overrideprotected

Definition at line 194 of file qgsmessagelogviewer.cpp.

◆ logMessage

void QgsMessageLogViewer::logMessage ( const QString &  message,
const QString &  tag,
Qgis::MessageLevel  level 
)
slot

Logs a message to the viewer.

Definition at line 111 of file qgsmessagelogviewer.cpp.

◆ reject()

void QgsMessageLogViewer::reject ( )
overrideprotected

Definition at line 107 of file qgsmessagelogviewer.cpp.


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