QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QWidgetUpdateBlocker Class Reference

Temporarily disables updates for a QWidget for the lifetime of the object. More...

#include <qgsguiutils.h>

Public Member Functions

 QWidgetUpdateBlocker (const QWidgetUpdateBlocker &other)=delete
 QWidgetUpdateBlocker cannot be copied. More...
 
 QWidgetUpdateBlocker (QWidget *widget)
 Constructor for QWidgetUpdateBlocker. More...
 
 ~QWidgetUpdateBlocker ()
 
QWidgetUpdateBlockeroperator= (const QWidgetUpdateBlocker &other)=delete
 QWidgetUpdateBlocker cannot be copied. More...
 
void release ()
 Releases the update block early (i.e. More...
 

Detailed Description

Temporarily disables updates for a QWidget for the lifetime of the object.

When the object is deleted, the updates are re-enabled.

Since
QGIS 3.34

Definition at line 217 of file qgsguiutils.h.

Constructor & Destructor Documentation

◆ QWidgetUpdateBlocker() [1/2]

QWidgetUpdateBlocker::QWidgetUpdateBlocker ( QWidget *  widget)

Constructor for QWidgetUpdateBlocker.

Blocks updates for the specified widget.

The caller must ensure that widget exists for the lifetime of this object.

Definition at line 407 of file qgsguiutils.cpp.

◆ QWidgetUpdateBlocker() [2/2]

QWidgetUpdateBlocker::QWidgetUpdateBlocker ( const QWidgetUpdateBlocker other)
delete

QWidgetUpdateBlocker cannot be copied.

◆ ~QWidgetUpdateBlocker()

QWidgetUpdateBlocker::~QWidgetUpdateBlocker ( )

Definition at line 422 of file qgsguiutils.cpp.

Member Function Documentation

◆ operator=()

QWidgetUpdateBlocker & QWidgetUpdateBlocker::operator= ( const QWidgetUpdateBlocker other)
delete

QWidgetUpdateBlocker cannot be copied.

◆ release()

void QWidgetUpdateBlocker::release ( )

Releases the update block early (i.e.

before this object is destroyed).

Definition at line 413 of file qgsguiutils.cpp.


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