QPropertyData Class
template <typename T> class QPropertyDataQPropertyData クラスは、プロパティの自動バインディングのためのヘルパークラスです。詳細...
ヘッダー | #include <QPropertyData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
以来: | Qt 6.0 |
継承します: | QUntypedPropertyData |
継承元: QUntypedPropertyData |
パブリック関数
void | setValueBypassingBindings(QPropertyData<T>::parameter_type v) |
void | setValueBypassingBindings(QPropertyData<T>::rvalue_ref v) |
QPropertyData<T>::parameter_type | valueBypassingBindings() const |
詳細説明
QPropertyData<T> は、自動データバインディングでプロパティを保持できるクラスの共通ベースクラスです。主に格納されたデータをラップし、そのデータへの低レベルのアクセスを提供します。
このクラスが提供するデータへの低レベルのアクセスは、バインディング機構をバイパスし、値の更新がこのプロパティに依存するすべてのバインディングに伝搬されないので、注意して使用する必要があります。
通常、QProperty<T> またはQObjectBindableProperty<T> に対して value() および setValue() を呼び出す必要があります。
メンバ関数のドキュメント
void QPropertyData::setValueBypassingBindings(QPropertyData<T>::parameter_type v)
こ のプ ロ パテ ィ に格納 さ れてい る デー タ 値をv に設定 し ます。
注意: このメソッドを使用すると、このプロパティに登録されている潜在的なバインディングがバイパスされます。
valueBypassingBindings()も参照してください 。
void QPropertyData::setValueBypassingBindings(QPropertyData<T>::rvalue_ref v)
これはオーバーロードされた関数である。
このプロパティに格納されているデータ値をv に設定します。
注意: このメソッドを使用すると、このプロパティに登録されている潜在的なバインディングがバイパスされます。
QPropertyData<T>::parameter_type QPropertyData::valueBypassingBindings() const
このプロパティに格納されているデータを返します。
注意: このメソッドはバインディング評価をバイパスするため、このプロパティにバインディングが設定されている場合、古い値が返される可能性があります。また、このメソッドを使用すると、現在実行中のバインディングにプロパティアクセスを登録しません。
setValueBypassingBindings()も参照してください 。
© 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.