QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsSignalBlocker< Object > Class Template Reference

RAII signal blocking class. More...

#include <qgis.h>

Public Member Functions

 QgsSignalBlocker (Object *object)
 Constructor for QgsSignalBlocker. More...
 ~QgsSignalBlocker ()
Object * operator-> ()
 Returns pointer to blocked QObject. More...

Detailed Description

template<class Object>
class QgsSignalBlocker< Object >

RAII signal blocking class.

Used for temporarily blocking signals from a QObject for the lifetime of QgsSignalBlocker object.

See also
not available in Python bindings

Definition at line 5070 of file qgis.h.

Constructor & Destructor Documentation

◆ QgsSignalBlocker()

template<class Object >
QgsSignalBlocker< Object >::QgsSignalBlocker ( Object *  object)

Constructor for QgsSignalBlocker.

objectQObject to block signals from

Definition at line 5078 of file qgis.h.

◆ ~QgsSignalBlocker()

template<class Object >
QgsSignalBlocker< Object >::~QgsSignalBlocker ( )

Definition at line 5083 of file qgis.h.

Member Function Documentation

◆ operator->()

template<class Object >
Object * QgsSignalBlocker< Object >::operator-> ( )

Returns pointer to blocked QObject.

Definition at line 5089 of file qgis.h.

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