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 |
| 継承元: |
パブリック関数
| QPropertyData() | |
| ~QPropertyData() | |
| void | setValueBypassingBindings(QPropertyData<T>::parameter_type v) |
| void | setValueBypassingBindings(QPropertyData<T>::rvalue_ref v) |
| QPropertyData<T>::parameter_type | valueBypassingBindings() const |
詳細な説明
QPropertyData は、テンプレートパラメータT によって格納されるプロパティ値の型が指定されるテンプレートクラスです。
QPropertyData<T> は、自動データバインディングを持つプロパティを保持できるクラスの共通の基底クラスです。主に格納されたデータをラップし、そのデータへの低レベルのアクセスを提供します。
このクラスが提供するデータへの低レベルアクセスは、バインディングのメカニズムをバイパスするため、値の更新がこのプロパティに依存するバインディングには反映されないため、使用には注意が必要です。
通常は、QProperty<T> またはQObjectBindableProperty<T> の value() および setValue() を呼び出すべきであり、このクラスが提供する低レベルのメカニズムは使用しないでください。
メンバ関数のドキュメント
[default] QPropertyData::QPropertyData()
QPropertyData のインスタンスをデフォルトコンストラクタで生成します。
[default] QPropertyData::~QPropertyData()
QPropertyData のインスタンスを破棄します。
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()。
© 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.