QScopedPropertyUpdateGroup Class

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

Header: #include <QScopedPropertyUpdateGroup>

Public Functions

Detailed Description

\since6.6 \inmodule QtCore \ingroup tools

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.

Member Function Documentation

QScopedPropertyUpdateGroup::QScopedPropertyUpdateGroup()

Calls Qt::beginPropertyUpdateGroup().

[noexcept(...)] QScopedPropertyUpdateGroup::~QScopedPropertyUpdateGroup()

Calls Qt::endPropertyUpdateGroup().

Note: This function does not throw any exception when "false" is true.