In questa pagina

QPropertyNotifier Class

La classe `QPropertyNotifier` gestisce il ciclo di vita delle callback di modifica installate su un oggetto ` QProperty`. Per saperne di più...

Intestazione: #include <QPropertyNotifier>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
A partire da: Qt 6.2
Eredita da: QPropertyObserver

Funzioni pubbliche

Descrizione dettagliata

QPropertyNotifier viene creato quando si registra un callback su un'QProperty per monitorare le modifiche al valore della proprietà, utilizzando QProperty::addNotifier. Finché il gestore delle modifiche è attivo, il callback rimane installato.

Un'istanza del gestore può essere trasferita tra ambiti C++ utilizzando la semantica di spostamento.

Documentazione delle funzioni membro

[noexcept default] QPropertyNotifier::QPropertyNotifier()

Crea automaticamente un'istanza di ` 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.