Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QScopedPropertyUpdateGroup Class Reference

RAII class around Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup(). More...

#include <qproperty.h>

+ Collaboration diagram for QScopedPropertyUpdateGroup:

Public Member Functions

Q_NODISCARD_CTOR QScopedPropertyUpdateGroup ()
 Calls Qt::beginPropertyUpdateGroup().
 
 ~QScopedPropertyUpdateGroup () noexcept(false)
 Calls Qt::endPropertyUpdateGroup().
 

Detailed Description

RAII class around Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup().

Since
6.6

\inmodule QtCore

This class calls Qt::beginPropertyUpdateGroup() in its constructor and Qt::endPropertyUpdateGroup() in its destructor, making sure the latter function is reliably called even in the presence of early returns or thrown exceptions.

Note
Qt::endPropertyUpdateGroup() may re-throw exceptions thrown by binding evaluations. This means your application may crash ({std::terminate()} called) if another exception is causing QScopedPropertyUpdateGroup's destructor to be called during stack unwinding. If you expect exceptions from binding evaluations, use manual Qt::endPropertyUpdateGroup() calls and {try}/{catch} blocks.
See also
QProperty

Definition at line 56 of file qproperty.h.

Constructor & Destructor Documentation

◆ QScopedPropertyUpdateGroup()

QScopedPropertyUpdateGroup::QScopedPropertyUpdateGroup ( )
inline

Calls Qt::beginPropertyUpdateGroup().

Definition at line 61 of file qproperty.h.

References Qt::beginPropertyUpdateGroup().

+ Here is the call graph for this function:

◆ ~QScopedPropertyUpdateGroup()

QScopedPropertyUpdateGroup::~QScopedPropertyUpdateGroup ( )
inline

Calls Qt::endPropertyUpdateGroup().

Definition at line 63 of file qproperty.h.

References Qt::endPropertyUpdateGroup().

+ Here is the call graph for this function:

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