Skip to content

PythonQt.QtCore.QTimeLine · declarations 002

Back to PythonQt.QtCore.QTimeLine

valueForTime

valueForTime(msec: int) -> float

X.valueForTime(msec) -> float

Supplemental documentation: Qt 5 reference:

[virtual] qreal QTimeLine::valueForTime(int msec) const

Returns the timeline value for the time msec. The returned value, which varies depending on the curve shape, is always between 0 and 1. If msec is 0, the default implementation always returns 0.

Reimplement this function to provide a custom curve shape for your timeline.

See also CurveShape and frameForTime().

Upstream PySide2 reference signatures (binding differences may apply):

valueForTime(self, msec: int) -> float

Source: https://doc.qt.io/archives/qt-5.15/qtimeline.html#valueForTime