QPropertyChangeHandler Class
template <typename Functor> class QPropertyChangeHandlerDie Klasse QPropertyChangeHandler steuert den Lebenszyklus von Change-Callbacks, die auf einer QProperty installiert sind.
Kopfzeile: | #include <QPropertyChangeHandler> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Erbt: | QPropertyObserver |
Detaillierte Beschreibung
QPropertyChangeHandler<Functor> wird erstellt, wenn ein Callback auf QProperty registriert wird, um auf Änderungen des Eigenschaftswertes zu hören, unter Verwendung von QProperty::onValueChanged und QProperty::subscribe. Solange der Change-Handler aktiv ist, bleibt der Callback installiert.
Eine Handler-Instanz kann mit Hilfe der Move-Semantik zwischen C++-Bereichen übertragen werden.
© 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.