QQmlPropertyValueSource Class

Die Klasse QQmlPropertyValueSource ist eine Schnittstelle für Eigenschaftswertquellen wie Animationen und Bindungen. Mehr...

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

Öffentliche Funktionen

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

Detaillierte Beschreibung

Siehe Quellen für Eigenschaftswerte für Informationen zum Schreiben von benutzerdefinierten Quellen für Eigenschaftswerte.

Dokumentation der Mitgliedsfunktionen

QQmlPropertyValueSource::QQmlPropertyValueSource()

Konstruiert eine QQmlPropertyValueSource.

[virtual noexcept] QQmlPropertyValueSource::~QQmlPropertyValueSource()

Zerstört die Wertequelle.

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

Legt das Ziel property für die Wertequelle fest. Diese Methode wird von der QML-Engine aufgerufen, wenn eine Wertequelle zugewiesen wird.

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