QPropertyData Class
template <typename T> class QPropertyDataQPropertyData 클래스는 자동 속성 바인딩이 있는 속성을 위한 도우미 클래스입니다. 더 보기...
Header: | #include <QPropertyData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
이후: | Qt 6.0 |
상속합니다: | 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.