Qx v0.6
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::ScopedPropertyUpdateGroup Class Reference

The ScopedPropertyUpdateGroup class starts an update group when constructed and ends it when destroyed. More...

#include <qx/core/qx-property.h>

Public Member Functions

Q_NODISCARD_CTOR ScopedPropertyUpdateGroup ()
 
 ~ScopedPropertyUpdateGroup () noexcept(false)
 

Detailed Description

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: Qx::endPropertyUpdateGroup() may re-throw exceptions thrown by binding evaluations. This means your application may crash (std::terminate() called) if another exception is causing ScopedPropertyUpdateGroup's destructor to be called during stack unwinding. If you expect exceptions from binding evaluations, use manual Qx::endPropertyUpdateGroup() calls and try/catch blocks.

See also
Property.

Constructor & Destructor Documentation

◆ ScopedPropertyUpdateGroup()

Qx::ScopedPropertyUpdateGroup::ScopedPropertyUpdateGroup ( )
inline

◆ ~ScopedPropertyUpdateGroup()

Qx::ScopedPropertyUpdateGroup::~ScopedPropertyUpdateGroup ( )
inline

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