Skip to content

PythonQt.QtCore.QTimeLine · declarations 001

Back to PythonQt.QtCore.QTimeLine

CurveShape instance-attribute

CurveShape: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

EaseInCurve instance-attribute

EaseInCurve: Any

EaseInOutCurve instance-attribute

EaseInOutCurve: Any

EaseOutCurve instance-attribute

EaseOutCurve: Any

LinearCurve instance-attribute

LinearCurve: Any

currentFrame

currentFrame() -> int

X.currentFrame() -> int

Supplemental documentation: Qt 5 reference:

int QTimeLine::currentFrame() const

Returns the frame corresponding to the current time.

See also currentTime(), frameForTime(), and setFrameRange().

Upstream PySide2 reference signatures (binding differences may apply):

currentFrame(self) -> int

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

currentTime instance-attribute

currentTime: int

Qt 5 reference:

currentTime : int

This property holds the current time of the time line.

When QTimeLine is in Running state, this value is updated continuously as a function of the duration and direction of the timeline. Otherwise, it is value that was current when stop() was called last, or the value set by setCurrentTime().

By default, this property contains a value of 0.

Access functions:

int currentTime() const
void setCurrentTime(int msec)

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

currentValue

currentValue() -> float

X.currentValue() -> float

Supplemental documentation: Qt 5 reference:

qreal QTimeLine::currentValue() const

Returns the value corresponding to the current time.

See also valueForTime() and currentFrame().

Upstream PySide2 reference signatures (binding differences may apply):

currentValue(self) -> float

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

curveShape instance-attribute

curveShape: Any

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QTimeLine.destroyed; argument details are not documented.

direction instance-attribute

direction: Any

Qt 5 reference:

direction : Direction

This property holds the direction of the timeline when QTimeLine is in Running state.

This direction indicates whether the time moves from 0 towards the timeline duration, or from the value of the duration and towards 0 after start() has been called.

By default, this property is set to Forward.

Access functions:

QTimeLine::Direction direction() const
void setDirection(QTimeLine::Direction direction)

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

duration instance-attribute

duration: int

Qt 5 reference:

duration : int

This property holds the total duration of the timeline in milliseconds.

By default, this value is 1000 (i.e., 1 second), but you can change this by either passing a duration to QTimeLine's constructor, or by calling setDuration(). The duration must be larger than 0.

Note: Changing the duration does not cause the current time to be reset to zero or the new duration. You also need to call setCurrentTime() with the desired value.

Access functions:

int duration() const
void setDuration(int duration)

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

easingCurve instance-attribute

easingCurve: QEasingCurve

Qt 5 reference:

easingCurve : QEasingCurve

Specifies the easing curve that the timeline will use. If valueForTime() is reimplemented, this value is ignored. If both easingCurve and curveShape are set, the last property set will override the previous one.

This property was introduced in Qt 4.6.

Access functions:

QEasingCurve easingCurve() const
void setEasingCurve(const QEasingCurve \&curve)

See also valueForTime().

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

endFrame

endFrame() -> int

X.endFrame() -> int

Supplemental documentation: Qt 5 reference:

int QTimeLine::endFrame() const

Returns the end frame, which is the frame corresponding to the end of the timeline (i.e., the frame for which the current value is 1).

See also setEndFrame() and setFrameRange().

Upstream PySide2 reference signatures (binding differences may apply):

endFrame(self) -> int

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

finished

finished(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QTimeLine.finished; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTimeLine::finished()

This signal is emitted when QTimeLine finishes (i.e., reaches the end of its time line), and does not loop.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

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

frameChanged

frameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QTimeLine.frameChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTimeLine::frameChanged(int frame)

QTimeLine emits this signal at regular intervals when in Running state, but only if the current frame changes. frame is the current frame number.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also QTimeLine::setFrameRange() and QTimeLine::updateInterval.

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

frameForTime

frameForTime(msec: int) -> int

X.frameForTime(msec) -> int

Supplemental documentation: Qt 5 reference:

int QTimeLine::frameForTime(int msec) const

Returns the frame corresponding to the time msec. This value is calculated using a linear interpolation of the start and end frame, based on the value returned by valueForTime().

See also valueForTime() and setFrameRange().

Upstream PySide2 reference signatures (binding differences may apply):

frameForTime(self, msec: int) -> int

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

loopCount instance-attribute

loopCount: int

Qt 5 reference:

loopCount : int

This property holds the number of times the timeline should loop before it's finished.

A loop count of of 0 means that the timeline will loop forever.

By default, this property contains a value of 1.

Access functions:

int loopCount() const
void setLoopCount(int count)

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

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QTimeLine.objectNameChanged; argument details are not documented.

resume

resume() -> None

X.resume()

Supplemental documentation: Qt 5 reference:

[slot] void QTimeLine::resume()

Resumes the timeline from the current time. QTimeLine will reenter Running state, and once it enters the event loop, it will update its current time, frame and value at regular intervals.

In contrast to start(), this function does not restart the timeline before it resumes.

See also start(), updateInterval(), frameChanged(), and valueChanged().

Upstream PySide2 reference signatures (binding differences may apply):

resume(self) -> None

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

setCurrentTime

setCurrentTime(msec: int) -> None

X.setCurrentTime(msec)

Upstream PySide2 reference signatures (binding differences may apply):

setCurrentTime(self, msec: int) -> None

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

setCurveShape

setCurveShape(shape: Any) -> None

X.setCurveShape(shape)

Upstream PySide2 reference signatures (binding differences may apply):

setCurveShape(self, shape: PySide2.QtCore.QTimeLine.CurveShape) -> None

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

setDirection

setDirection(direction: Any) -> None

X.setDirection(direction)

Upstream PySide2 reference signatures (binding differences may apply):

setDirection(self, direction: PySide2.QtCore.QTimeLine.Direction) -> None

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

setDuration

setDuration(duration: int) -> None

X.setDuration(duration)

Upstream PySide2 reference signatures (binding differences may apply):

setDuration(self, duration: int) -> None

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

setEasingCurve

setEasingCurve(curve: Any) -> None

X.setEasingCurve(curve)

Upstream PySide2 reference signatures (binding differences may apply):

setEasingCurve(self, curve: PySide2.QtCore.QEasingCurve) -> None

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

setEndFrame

setEndFrame(frame: int) -> None

X.setEndFrame(frame)

Supplemental documentation: Qt 5 reference:

void QTimeLine::setEndFrame(int frame)

Sets the end frame, which is the frame corresponding to the end of the timeline (i.e., the frame for which the current value is 1), to frame.

See also endFrame(), startFrame(), and setFrameRange().

Upstream PySide2 reference signatures (binding differences may apply):

setEndFrame(self, frame: int) -> None

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

setFrameRange

setFrameRange(startFrame: int, endFrame: int) -> None

X.setFrameRange(startFrame, endFrame)

Supplemental documentation: Qt 5 reference:

void QTimeLine::setFrameRange(int startFrame, int endFrame)

Sets the timeline's frame counter to start at startFrame, and end and endFrame. For each time value, QTimeLine will find the corresponding frame when you call currentFrame() or frameForTime() by interpolating, using the return value of valueForTime().

When in Running state, QTimeLine also emits the frameChanged() signal when the frame changes.

See also startFrame(), endFrame(), start(), and currentFrame().

Upstream PySide2 reference signatures (binding differences may apply):

setFrameRange(self, startFrame: int, endFrame: int) -> None

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

setLoopCount

setLoopCount(count: int) -> None

X.setLoopCount(count)

Upstream PySide2 reference signatures (binding differences may apply):

setLoopCount(self, count: int) -> None

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

setPaused

setPaused(paused: bool) -> None

X.setPaused(paused)

Supplemental documentation: Qt 5 reference:

[slot] void QTimeLine::setPaused(bool paused)

If paused is true, the timeline is paused, causing QTimeLine to enter Paused state. No updates will be signaled until either start() or setPaused(false) is called. If paused is false, the timeline is resumed and continues where it left.

See also state() and start().

Upstream PySide2 reference signatures (binding differences may apply):

setPaused(self, paused: bool) -> None

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

setStartFrame

setStartFrame(frame: int) -> None

X.setStartFrame(frame)

Supplemental documentation: Qt 5 reference:

void QTimeLine::setStartFrame(int frame)

Sets the start frame, which is the frame corresponding to the start of the timeline (i.e., the frame for which the current value is 0), to frame.

See also startFrame(), endFrame(), and setFrameRange().

Upstream PySide2 reference signatures (binding differences may apply):

setStartFrame(self, frame: int) -> None

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

setUpdateInterval

setUpdateInterval(interval: int) -> None

X.setUpdateInterval(interval)

Upstream PySide2 reference signatures (binding differences may apply):

setUpdateInterval(self, interval: int) -> None

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

start

start() -> None

X.start()

Supplemental documentation: Qt 5 reference:

[slot] void QTimeLine::start()

Starts the timeline. QTimeLine will enter Running state, and once it enters the event loop, it will update its current time, frame and value at regular intervals. The default interval is 40 ms (i.e., 25 times per second). You can change the update interval by calling setUpdateInterval().

The timeline will start from position 0, or the end if going backward. If you want to resume a stopped timeline without restarting, you can call resume() instead.

See also resume(), updateInterval(), frameChanged(), and valueChanged().

Upstream PySide2 reference signatures (binding differences may apply):

start(self) -> None

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

startFrame

startFrame() -> int

X.startFrame() -> int

Supplemental documentation: Qt 5 reference:

int QTimeLine::startFrame() const

Returns the start frame, which is the frame corresponding to the start of the timeline (i.e., the frame for which the current value is 0).

See also setStartFrame() and setFrameRange().

Upstream PySide2 reference signatures (binding differences may apply):

startFrame(self) -> int

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

state

state() -> Any

X.state()

Supplemental documentation: Qt 5 reference:

QTimeLine::State QTimeLine::state() const

Returns the state of the timeline.

See also start(), setPaused(), and stop().

Upstream PySide2 reference signatures (binding differences may apply):

state(self) -> PySide2.QtCore.QTimeLine.State

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

stateChanged

stateChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QTimeLine.stateChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTimeLine::stateChanged(QTimeLine::State newState)

This signal is emitted whenever QTimeLine's state changes. The new state is newState.

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

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

stop

stop() -> None

X.stop()

Supplemental documentation: Qt 5 reference:

[slot] void QTimeLine::stop()

Stops the timeline, causing QTimeLine to enter NotRunning state.

See also start().

Upstream PySide2 reference signatures (binding differences may apply):

stop(self) -> None

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

timerEvent

timerEvent(event: Any) -> None

X.timerEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTimeLine::timerEvent(QTimerEvent *event)

Reimplements: QObject::timerEvent(QTimerEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

timerEvent(self, event: PySide2.QtCore.QTimerEvent) -> None

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

toggleDirection

toggleDirection() -> None

X.toggleDirection()

Supplemental documentation: Qt 5 reference:

[slot] void QTimeLine::toggleDirection()

Toggles the direction of the timeline. If the direction was Forward, it becomes Backward, and vice verca.

See also setDirection().

Upstream PySide2 reference signatures (binding differences may apply):

toggleDirection(self) -> None

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

updateInterval instance-attribute

updateInterval: int

Qt 5 reference:

updateInterval : int

This property holds the time in milliseconds between each time QTimeLine updates its current time.

When updating the current time, QTimeLine will emit valueChanged() if the current value changed, and frameChanged() if the frame changed.

By default, the interval is 40 ms, which corresponds to a rate of 25 updates per second.

Access functions:

int updateInterval() const
void setUpdateInterval(int interval)

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

valueChanged

valueChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QTimeLine.valueChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTimeLine::valueChanged(qreal value)

QTimeLine emits this signal at regular intervals when in Running state, but only if the current value changes. value is the current value. value is a number between 0.0 and 1.0

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

See also QTimeLine::setDuration(), QTimeLine::valueForTime(), and QTimeLine::updateInterval.

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