QScopedPropertyUpdateGroup Class
Classe RAII relativa a Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup(). Altro...
| Intestazione: | #include <QScopedPropertyUpdateGroup> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
| A partire da: | Qt 6.6 |
Funzioni pubbliche
Descrizione dettagliata
Questa classe chiama ` Qt::beginPropertyUpdateGroup()` nel proprio costruttore e ` Qt::endPropertyUpdateGroup()` nel proprio distruttore, assicurandosi che quest'ultima funzione venga chiamata in modo affidabile anche in presenza di ritorni anticipati o di eccezioni lanciate.
Nota: ` Qt::endPropertyUpdateGroup()` può rigenerare le eccezioni generate dalle valutazioni dei binding. Ciò significa che l’applicazione potrebbe andare in crash (con la chiamata a `std::terminate() `) se un’altra eccezione causasse la chiamata al distruttore di `QScopedPropertyUpdateGroup` durante lo stack unwinding. Se si prevedono eccezioni derivanti dalle valutazioni dei binding, utilizzare chiamate manuali a ` Qt::endPropertyUpdateGroup()` e blocchi ` try` / `catch `.
Vedi anche QProperty.
Documentazione sulle funzioni membro
QScopedPropertyUpdateGroup::QScopedPropertyUpdateGroup()
Chiama la funzione ` Qt::beginPropertyUpdateGroup()`.
QScopedPropertyUpdateGroup::~QScopedPropertyUpdateGroup()
Chiama la funzione ` Qt::endPropertyUpdateGroup()`.
© 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.