Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qpropertyanimation.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPROPERTYANIMATION_H
5#define QPROPERTYANIMATION_H
6
7#include <QtCore/qvariantanimation.h>
8
10
12
14class Q_CORE_EXPORT QPropertyAnimation : public QVariantAnimation
15{
17 Q_PROPERTY(QByteArray propertyName READ propertyName WRITE setPropertyName
18 BINDABLE bindablePropertyName)
19 Q_PROPERTY(QObject* targetObject READ targetObject WRITE setTargetObject
20 BINDABLE bindableTargetObject)
21
22public:
24 QPropertyAnimation(QObject *target, const QByteArray &propertyName, QObject *parent = nullptr);
26
27 QObject *targetObject() const;
28 void setTargetObject(QObject *target);
29 QBindable<QObject *> bindableTargetObject();
30
31 QByteArray propertyName() const;
32 void setPropertyName(const QByteArray &propertyName);
33 QBindable<QByteArray> bindablePropertyName();
34
35protected:
36 bool event(QEvent *event) override;
37 void updateCurrentValue(const QVariant &value) override;
39
40private:
41 Q_DISABLE_COPY(QPropertyAnimation)
42 Q_DECLARE_PRIVATE(QPropertyAnimation)
43};
44
46
47#endif // QPROPERTYANIMATION_H
State
This enum describes the state of the animation.
\inmodule QtCore
Definition qproperty.h:809
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override
\reimp
virtual void updateCurrentValue(const QVariant &value)
This virtual function is called every time the animation's current value changes.
\inmodule QtCore
Definition qvariant.h:64
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum target
struct _cl_event * event
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
QPropertyAnimation animation
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent