QScopedPropertyUpdateGroup Class

Qt::beginPropertyUpdateGroup()/Qt::endPropertyUpdateGroup() 周辺の RAII クラス。さらに...

ヘッダ #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.