Obsolete Members for QTimeLine

以下成员源于类 QTimeLine 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共类型

(obsolete) enum CurveShape { EaseInCurve, EaseOutCurve, EaseInOutCurve, LinearCurve, SineCurve, CosineCurve }

特性

公共函数

(obsolete) QTimeLine::CurveShape curveShape () const
(obsolete) void setCurveShape (QTimeLine::CurveShape shape )

成员类型文档编制

enum QTimeLine:: CurveShape

This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

使用 QEasingCurve 代替

This enum describes the shape of QTimeLine 's value curve. The default shape is EaseInOutCurve. The curve defines the relation between the value and the timeline.

常量 描述
QTimeLine::EaseInCurve 0 Obsolete equivalent of QEasingCurve::InCurve
QTimeLine::EaseOutCurve 1 Obsolete equivalent of QEasingCurve::OutCurve
QTimeLine::EaseInOutCurve 2 Obsolete equivalent of QEasingCurve::InOutSine
QTimeLine::LinearCurve 3 Obsolete equivalent of QEasingCurve::Linear
QTimeLine::SineCurve 4 Obsolete equivalent of QEasingCurve::SineCurve
QTimeLine::CosineCurve 5 Obsolete equivalent of QEasingCurve::CosineCurve

另请参阅 curveShape , setCurveShape (), easingCurve ,和 QEasingCurve .

特性文档编制

curveShape : CurveShape

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This property holds the shape of the timeline curve.

The curve shape describes the relation between the time and value for the base implementation of valueForTime ().

This property is an indirect way to update the easingCurve property; if you set both, the one set more recently overrides the other. (If valueForTime () is reimplemented it will override both.)

默认情况下,此特性被设为 EaseInOutCurve .

Access easingCurve 代替。

访问函数:

QTimeLine::CurveShape curveShape () const
void setCurveShape (QTimeLine::CurveShape shape )

另请参阅 valueForTime () 和 easingCurve .