QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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.
 
 ~QgsSignalBlocker ()
 
Object * operator-> ()
 Returns pointer to blocked QObject.
 

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
whileBlocking()
Note
not available in Python bindings

Definition at line 5780 of file qgis.h.

Constructor & Destructor Documentation

◆ QgsSignalBlocker()

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

Constructor for QgsSignalBlocker.

Parameters
objectQObject to block signals from

Definition at line 5788 of file qgis.h.

◆ ~QgsSignalBlocker()

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

Definition at line 5793 of file qgis.h.

Member Function Documentation

◆ operator->()

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

Returns pointer to blocked QObject.

Definition at line 5799 of file qgis.h.


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