|
| QPropertyAnimation (QObject *parent=nullptr) |
|
| QPropertyAnimation (QObject *target, const QString &propertyName, QObject *parent=nullptr) |
|
| ~QPropertyAnimation () |
|
QString | propertyName () const |
|
void | setPropertyName (const QString &propertyName) |
|
void | setTargetObject (QObject *target) |
|
QObject * | targetObject () const |
|
| QVariantAnimation (QObject *parent=nullptr) |
|
| ~QVariantAnimation () |
|
QVariant | currentValue () const |
|
int | duration () const override |
|
QEasingCurve | easingCurve () const |
|
QVariant | endValue () const |
|
QVariant | keyValueAt (double step) const |
|
QVector< QVariantAnimation::ValuePair > | keyValues () const |
|
void | setDuration (int msecs) |
|
void | setEasingCurve (const QEasingCurve &easing) |
|
void | setEndValue (const QVariant &value) |
|
void | setKeyValueAt (double step, const QVariant &value) |
|
void | setKeyValues (const QVector< QVariantAnimation::ValuePair > &keyValues) |
|
void | setStartValue (const QVariant &value) |
|
QVariant | startValue () const |
|
| QAbstractAnimation (QObject *parent=nullptr) |
|
virtual | ~QAbstractAnimation () |
|
int | currentLoop () const |
|
int | currentLoopTime () const |
|
int | currentTime () const |
|
Direction | direction () const |
|
QAnimationGroup * | group () const |
|
int | loopCount () const |
|
void | setDirection (Direction direction) |
|
void | setLoopCount (int loopCount) |
|
State | state () const |
|
int | totalDuration () const |
|
| QObject (QObject *parent=nullptr) |
|
| ~QObject () |
|
bool | blockSignals (bool block) |
|
const QList< QObject * > & | children () const |
|
bool | connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
bool | connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
bool | disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const |
|
bool | disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const |
|
bool | disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QString > | dynamicPropertyNames () const |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
template<typename T > |
T | findChild (const QString &childName=QString ()) const |
|
template<class T > |
QList< T > | findChildren (const QRegularExpression ®Exp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<class T > |
QList< T > | findChildren (const QString &childName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
bool | inherits (const QString &className) const |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
void | killTimer (int id) |
|
const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
QString | objectName () const |
|
QObject * | parent () const |
|
template<class T = QVariant> |
T | property (const QString &name) const |
|
void | removeEventFilter (QObject *obj) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const QString &name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
|
QThread * | thread () const |
|
|
using | ValuePair = QPair< double, QVariant > |
|
enum | DeletionPolicy |
|
enum | Direction |
|
enum | State |
|
void | valueChanged (const QVariant &value) |
|
void | currentLoopChanged (int currentLoop) |
|
void | directionChanged (QAbstractAnimation::Direction newDirection) |
|
void | finished () |
|
void | stateChanged (QAbstractAnimation::State newState, QAbstractAnimation::State oldState) |
|
void | destroyed (QObject *obj=nullptr) |
|
void | objectNameChanged (const QString &objectName) |
|
void | pause () |
|
void | resume () |
|
void | setCurrentTime (int msecs) |
|
void | setPaused (bool paused) |
|
void | start (QAbstractAnimation::DeletionPolicy policy=KeepWhenStopped) |
|
void | stop () |
|
void | deleteLater () |
|
static bool | connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ()) |
|
static bool | connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn > |
static bool | connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T > |
static bool | connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod) |
|
static bool | disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod) |
|
static bool | disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod) |
|
static bool | disconnect (const QObject *sender, std::nullptr_t, const QObject *receiver, std::nullptr_t) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...)) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr) |
|
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T > |
static bool | disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod) |
|
static QMetaObject & | staticMetaObject () |
|
static QString | tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >()) |
|
void | qRegisterAnimationInterpolator (QVariant (*)(const T &from, const T &to, qreal progress) func) |
|
T | qobject_cast (QObject *object) |
|
| QObjectList |
|
QPropertyAnimation updates the value of a given property by looping from a starting value to an ending value. The intended purpose is to produce a smooth animation. The property must have both a read and write method.
If a start value is not set the property will start at the value it had when the QPropertyAnimation instance was created.
For complex animations which animate several objects consider using a QAnimationGroup. An animation group is an animation that can contain other animations and can manage when its animations are played. Refer to QParallelAnimationGroup for an example.
Example
Constructing a QPropertyAnimation requires an object and the name of a property which belongs to the given object.
This class inherits from QVariantAnimation. For more information about how to set up the animation refer to the detailed description for that class.
- See also
- QVariantAnimation, QAnimationGroup, Animation Technology, Properties