QScopedPropertyUpdateGroup Class

RAII 클래스 주변 Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup(). 더 보기...

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

공용 함수

자세한 설명

이 클래스는 생성자에서 Qt::beginPropertyUpdateGroup()를, 소멸자에서 Qt::endPropertyUpdateGroup()를 호출하여 조기 반환이나 예외가 발생하더라도 후자의 함수가 안정적으로 호출되도록 합니다.

참고: Qt::endPropertyUpdateGroup()는 바인딩 평가에 의해 던져진 예외를 다시 던질 수 있습니다. 즉, 스택 언와인딩 중에 다른 예외로 인해 QScopedPropertyUpdateGroup의 소멸자가 호출되는 경우 애플리케이션이 충돌(std::terminate() 호출)할 수 있습니다. 바인딩 평가에서 예외가 예상되는 경우 수동 Qt::endPropertyUpdateGroup() 호출 및 try/catch 블록을 사용하세요.

QProperty참조하세요 .

멤버 함수 문서

QScopedPropertyUpdateGroup::QScopedPropertyUpdateGroup()

Qt::beginPropertyUpdateGroup()를 호출합니다.

QScopedPropertyUpdateGroup::~QScopedPropertyUpdateGroup()

Qt::endPropertyUpdateGroup()를 호출합니다.

© 2025 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.