QQmlPropertyValueInterceptor Class

The QQmlPropertyValueInterceptor class is inherited by property interceptors such as Behavior. \internal. More...

Header: #include <QQmlPropertyValueInterceptor>

Public Functions

QQmlPropertyValueInterceptor()
virtual bool bindable(QUntypedBindable *bindable, QUntypedBindable target)

Detailed Description

This class intercepts property writes, allowing for custom handling. For example, Behavior uses this interception to provide a default animation for all changes to a property's value.

Member Function Documentation

QQmlPropertyValueInterceptor::QQmlPropertyValueInterceptor()

Constructs a QQmlPropertyValueInterceptor.

[virtual] bool QQmlPropertyValueInterceptor::bindable(QUntypedBindable *bindable, QUntypedBindable target)

\internalCalled when a BindableProperty metacall gets intercepted. The default implementation does nothing and simply returns false. A subclass which can properly intercept the metacall should return true after doing its work. bindable is the pointer to the QUntypedBindable passed through the metacall target is the QUntypedBindable of the intercepted property