Auf dieser Seite

QScopedPropertyUpdateGroup Class

RAII-Klasse rund um Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup(). Mehr...

Header: #include <QScopedPropertyUpdateGroup>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Seit: Qt 6.6

Öffentliche Funktionen

Ausführliche Beschreibung

Diese Klasse ruft in ihrem Konstruktor ` Qt::beginPropertyUpdateGroup()` und in ihrem Destruktor ` Qt::endPropertyUpdateGroup()` auf, wodurch sichergestellt wird, dass die letztere Funktion auch bei vorzeitigem Abbruch oder ausgelösten Ausnahmen zuverlässig aufgerufen wird.

Hinweis: ` Qt::endPropertyUpdateGroup()` kann Ausnahmen, die bei der Auswertung von Bindungen ausgelöst wurden, erneut auslösen. Das bedeutet, dass Ihre Anwendung abstürzen kann (wobei `std::terminate() ` aufgerufen wird), wenn eine andere Ausnahme dazu führt, dass der Destruktor von `QScopedPropertyUpdateGroup` während des Stack-Unwindings aufgerufen wird. Wenn Sie Ausnahmen bei der Auswertung von Bindungen erwarten, verwenden Sie manuelle Aufrufe von ` Qt::endPropertyUpdateGroup()` sowie Blöcke mit ` try` bzw. `catch `.

Siehe auch QProperty.

Dokumentation zu den Mitgliedsfunktionen

QScopedPropertyUpdateGroup::QScopedPropertyUpdateGroup()

Ruft die Funktion „ Qt::beginPropertyUpdateGroup()“ auf.

QScopedPropertyUpdateGroup::~QScopedPropertyUpdateGroup()

Ruft „ Qt::endPropertyUpdateGroup()“ auf.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.