Nesta página

QPropertyNotifier Class

A classe `QPropertyNotifier` controla o ciclo de vida das chamadas de retorno de alteração instaladas em um ` QProperty`. Mais...

Cabeçalho: #include <QPropertyNotifier>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Desde: Qt 6.2
Herdado de: QPropertyObserver

Funções públicas

Descrição detalhada

O QPropertyNotifier é criado ao registrar um callback em uma propriedade ( QProperty ) para monitorar alterações no valor da propriedade, utilizando QProperty::addNotifier. Enquanto o manipulador de alterações estiver ativo, o callback permanece instalado.

Uma instância do manipulador pode ser transferida entre escopos de C++ usando semântica de movimentação.

Documentação das funções de membro

[noexcept default] QPropertyNotifier::QPropertyNotifier()

Constrói, por padrão, uma instância de ` 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.