![]() |
Qt 6.x
The Qt SDK
|
RAII class around Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup(). More...
#include <qproperty.h>
Public Member Functions | |
Q_NODISCARD_CTOR | QScopedPropertyUpdateGroup () |
Calls Qt::beginPropertyUpdateGroup(). | |
~QScopedPropertyUpdateGroup () noexcept(false) | |
Calls Qt::endPropertyUpdateGroup(). | |
RAII class around Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup().
\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.
{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.Definition at line 56 of file qproperty.h.
|
inline |
Calls Qt::beginPropertyUpdateGroup().
Definition at line 61 of file qproperty.h.
References Qt::beginPropertyUpdateGroup().
|
inline |
Calls Qt::endPropertyUpdateGroup().
Definition at line 63 of file qproperty.h.
References Qt::endPropertyUpdateGroup().