Auf dieser Seite

QPropertyNotifier Class

Die Klasse „QPropertyNotifier“ steuert den Lebenszyklus von Änderungs-Callbacks, die auf einem „ QProperty “ installiert sind. Mehr...

Header: #include <QPropertyNotifier>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Seit: Qt 6.2
Erbt von: QPropertyObserver

Öffentliche Funktionen

Ausführliche Beschreibung

QPropertyNotifier wird erstellt, wenn ein Callback für eine „ QProperty “ registriert wird, um Änderungen am Wert der Eigenschaft mithilfe von „ QProperty::addNotifier “ zu überwachen. Solange der Änderungshandler aktiv ist, bleibt der Callback installiert.

Eine Handler-Instanz kann mithilfe von Move-Semantik zwischen C++-Gültigkeitsbereichen übertragen werden.

Dokumentation der Mitgliedsfunktionen

[noexcept default] QPropertyNotifier::QPropertyNotifier()

Erstellt standardmäßig eine Instanz von „ QPropertyNotifier “.

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