이 페이지에서

QPropertyData Class

template <typename T> class QPropertyData

QPropertyData 클래스는 자동 속성 바인딩을 지원하는 속성을 위한 헬퍼 클래스입니다. 더 보기...

헤더: #include <QPropertyData>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
다음부터: Qt 6.0
상속: QUntypedPropertyData
상속:

QObjectBindableProperty 및 QProperty

공개 함수

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.