이 페이지에서

QPropertyChangeHandler Class

template <typename Functor> class QPropertyChangeHandler

QPropertyChangeHandler 클래스는 QProperty 에 등록된 변경 콜백의 수명 주기를 제어합니다. 더 보기...

헤더: #include <QPropertyChangeHandler>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
상속: QPropertyObserver

상세 설명

QPropertyChangeHandler는 템플릿 클래스로, 템플릿 매개변수 Functor 는 속성 값이 변경될 때 호출되는 콜백 함수의 유형을 지정합니다.

QPropertyChangeHandler<Functor>는 QProperty::onValueChanged 및 QProperty::subscribe 를 사용하여 QProperty 에 콜백을 등록하고, 해당 속성의 값 변경을 감지할 때 생성됩니다. 변경 핸들러가 존재하는 한 콜백은 계속 설치된 상태로 유지됩니다.

핸들러 인스턴스는 이동 세미언틱스를 사용하여 C++ 범위 간에 전달될 수 있습니다.

© 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.