Nesta página

QQmlPropertyValueSource Class

A classe QQmlPropertyValueSource é uma interface para fontes de valores de propriedade, como animações e ligações. Saiba mais...

Cabeçalho: #include <QQmlPropertyValueSource>
CMake: find_package(Qt6 REQUIRED COMPONENTS Qml)
target_link_libraries(mytarget PRIVATE Qt6::Qml)
qmake: QT += qml

Funções públicas

QQmlPropertyValueSource()
virtual ~QQmlPropertyValueSource()
virtual void setTarget(const QQmlProperty &property) = 0

Descrição detalhada

Consulte Fontes de valores de propriedade para obter informações sobre como escrever fontes de valores de propriedade personalizadas.

Documentação das funções de membro

QQmlPropertyValueSource::QQmlPropertyValueSource()

Cria um objeto QQmlPropertyValueSource.

[virtual noexcept] QQmlPropertyValueSource::~QQmlPropertyValueSource()

Destrói a fonte de valor.

[pure virtual] void QQmlPropertyValueSource::setTarget(const QQmlProperty &property)

Defina o property de destino para a fonte de valor. Esse método será chamado pelo mecanismo QML ao atribuir uma fonte de valor.

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