以下成員源於類 QTimeLine 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
enum
|
CurveShape { EaseInCurve, EaseOutCurve, EaseInOutCurve, LinearCurve, SineCurve, CosineCurve } |
(obsolete)
curveShape
: CurveShape
(obsolete)
QTimeLine::CurveShape
|
curveShape () const |
(obsolete)
void
|
setCurveShape (QTimeLine::CurveShape shape ) |
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 .
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 .