Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlPropertyValueSource Class Referenceabstract

The QQmlPropertyValueSource class is an interface for property value sources such as animations and bindings. More...

#include <qqmlpropertyvaluesource.h>

+ Inheritance diagram for QQmlPropertyValueSource:
+ Collaboration diagram for QQmlPropertyValueSource:

Public Member Functions

 QQmlPropertyValueSource ()
 Constructs a QQmlPropertyValueSource.
 
virtual ~QQmlPropertyValueSource ()
 Destroys the value source.
 
virtual void setTarget (const QQmlProperty &)=0
 Set the target property for the value source.
 

Detailed Description

The QQmlPropertyValueSource class is an interface for property value sources such as animations and bindings.

\inmodule QtQml

See \l{Property Value Sources} for information on writing custom property value sources.

Definition at line 14 of file qqmlpropertyvaluesource.h.

Constructor & Destructor Documentation

◆ QQmlPropertyValueSource()

QQmlPropertyValueSource::QQmlPropertyValueSource ( )

Constructs a QQmlPropertyValueSource.

Definition at line 20 of file qqmlpropertyvaluesource.cpp.

◆ ~QQmlPropertyValueSource()

QQmlPropertyValueSource::~QQmlPropertyValueSource ( )
virtual

Destroys the value source.

Definition at line 27 of file qqmlpropertyvaluesource.cpp.

Member Function Documentation

◆ setTarget()

void QQmlPropertyValueSource::setTarget ( const QQmlProperty property)
pure virtual

Set the target property for the value source.

This method will be called by the QML engine when assigning a value source.

Implemented in QQmlBind, and QQuickAbstractAnimation.

Referenced by QQmlCppOnAssignmentHelper::set().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: