Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlCppOnAssignmentHelper Struct Reference

#include <qqmlcpponassignment_p.h>

+ Collaboration diagram for QQmlCppOnAssignmentHelper:

Static Public Member Functions

static void set (QQmlPropertyValueInterceptor *interceptor, const QQmlProperty &property)
 
static void set (QQmlPropertyValueSource *valueSource, const QQmlProperty &property)
 

Detailed Description

Helper class that provides setTarget() functionality for both value interceptors and value sources.

Property value sources could be problematic because QQuickAbstractAnimation changes access specifier of QQmlPropertyValueSource::setTarget() to private (unintentionally?). This API allows to avoid manual casts to base types as the C++ compiler would implicitly cast derived classes in this case.

Definition at line 33 of file qqmlcpponassignment_p.h.

Member Function Documentation

◆ set() [1/2]

QT_BEGIN_NAMESPACE void QQmlCppOnAssignmentHelper::set ( QQmlPropertyValueInterceptor interceptor,
const QQmlProperty property 
)
static

Definition at line 8 of file qqmlcpponassignment.cpp.

References property, and QQmlPropertyValueInterceptor::setTarget().

+ Here is the call graph for this function:

◆ set() [2/2]

void QQmlCppOnAssignmentHelper::set ( QQmlPropertyValueSource valueSource,
const QQmlProperty property 
)
static

Definition at line 14 of file qqmlcpponassignment.cpp.

References property, and QQmlPropertyValueSource::setTarget().

+ Here is the call graph for this function:

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