17 Q_PROPERTY(QByteArray propertyName READ propertyName WRITE setPropertyName
18 BINDABLE bindablePropertyName)
19 Q_PROPERTY(QObject* targetObject READ targetObject WRITE setTargetObject
20 BINDABLE bindableTargetObject)
23 QPropertyAnimation(QObject *parent =
nullptr);
24 QPropertyAnimation(QObject *target,
const QByteArray &propertyName, QObject *parent =
nullptr);
25 ~QPropertyAnimation();
27 QObject *targetObject()
const;
28 void setTargetObject(QObject *target);
29 QBindable<QObject *> bindableTargetObject();
31 QByteArray propertyName()
const;
32 void setPropertyName(
const QByteArray &propertyName);
33 QBindable<QByteArray> bindablePropertyName();
36 bool event(QEvent *event) override;
37 void updateCurrentValue(
const QVariant &value) override;
38 void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
41 Q_DISABLE_COPY(QPropertyAnimation)
42 Q_DECLARE_PRIVATE(QPropertyAnimation)