Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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:
23 QPropertyAnimation(QObject *parent = nullptr);
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;
38 void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) override;
39
41 Q_DISABLE_COPY(QPropertyAnimation)
42 Q_DECLARE_PRIVATE(QPropertyAnimation)
43};
44
46
47#endif // QPROPERTYANIMATION_H
\inmodule QtCore
Definition qproperty.h:811
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore
\inmodule QtCore
Definition qvariant.h:65
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]