Redirect Qt logging types to QTextEdit.
More...
#include <log.hpp>
|
| Log (QWidget *parent=nullptr) |
| Connect QTextEdit to message handler.
|
|
|
void | messageHandler (QtMsgType type, QMessageLogContext const &context, QString const &msg) |
| Append all incoming messages.
|
|
Log redirects all Qt logging types (qCritical, qDebug, qFatal, qInfo and qWarning) to a QTextEdit widget. This works by installing the MessageHandler singleton and connecting it to the Log::messageHandler() slot.
◆ Log()
Log::Log |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ contextMenuEvent()
void Log::contextMenuEvent |
( |
QContextMenuEvent * | event | ) |
|
|
finalprivate |
◆ insertFromMimeData()
void Log::insertFromMimeData |
( |
QMimeData const * | | ) |
|
|
finalprivate |
◆ keyPressEvent()
void Log::keyPressEvent |
( |
QKeyEvent * | | ) |
|
|
finalprivate |
◆ messageHandler
void Log::messageHandler |
( |
QtMsgType | type, |
|
|
QMessageLogContext const & | context, |
|
|
QString const & | msg ) |
|
privateslot |
The documentation for this class was generated from the following files:
- /home/runner/work/Flasher/Flasher/src/log.hpp
- /home/runner/work/Flasher/Flasher/src/log.cpp