Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 57 of file qproperty.h.

Constructor & Destructor Documentation

◆ QScopedPropertyUpdateGroup()

Q_NODISCARD_CTOR QScopedPropertyUpdateGroup::QScopedPropertyUpdateGroup ( )
inline

Calls Qt::beginPropertyUpdateGroup().

Definition at line 62 of file qproperty.h.

◆ ~QScopedPropertyUpdateGroup()

QScopedPropertyUpdateGroup::~QScopedPropertyUpdateGroup ( )
inline

Calls Qt::endPropertyUpdateGroup().

Definition at line 64 of file qproperty.h.


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