Class: QgsMessageLogNotifyBlocker¶
- class qgis.core.QgsMessageLogNotifyBlocker¶
Bases:
sip.wrapper
Temporarily blocks the application
QgsMessageLog
(seeQgsApplication.messageLog()
) from emitting the messageReceived( bool ) signal for the lifetime of the object.Using this blocker allows messages to be logged without causing user interface hints flagging message log errors to be created.
QgsMessageLogNotifyBlocker
supports “stacked” blocking, so twoQgsMessageLogNotifyBlocker
created will both need to be destroyed before the messageReceived( bool ) signal is emitted again.Added in version 3.2.
QgsMessageLogNotifyBlocker() Constructor for QgsMessageLogNotifyBlocker.
This will block the log from emitting the messageReceived( bool ) signal for the lifetime of this object.