Skip to content

PythonQt.QtCore.QAbstractAnimation · declarations 001

Back to PythonQt.QtCore.QAbstractAnimation

Backward instance-attribute

Backward: Any

DeleteWhenStopped instance-attribute

DeleteWhenStopped: Any

DeletionPolicy instance-attribute

DeletionPolicy: 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

Direction instance-attribute

Direction: 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

Forward instance-attribute

Forward: Any

KeepWhenStopped instance-attribute

KeepWhenStopped: Any

Paused instance-attribute

Paused: Any

Running instance-attribute

Running: Any

State instance-attribute

State: 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

Stopped instance-attribute

Stopped: Any

blockSignals

blockSignals(b: Any) -> bool

X.blockSignals(b) -> bool

childEvent

childEvent(event: Any) -> Any

X.childEvent(event)

children

children() -> tuple

X.children() -> tuple

className

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

Return the classname of the object

connect

connect(signal: Any, receiver: Any, slot: Any, type: Any) -> bool

X.connect(signal, receiver, slot, type) -> bool

currentLoop instance-attribute

currentLoop: int

Qt 5 reference:

currentLoop : const int

This property holds the current loop of the animation

This property describes the current loop of the animation. By default, the animation's loop count is 1, and so the current loop will always be 0. If the loop count is 2 and the animation runs past its duration, it will automatically rewind and restart at current time 0, and current loop 1, and so on.

When the current loop changes, QAbstractAnimation emits the currentLoopChanged() signal.

Access functions:

int currentLoop() const

Notifier signal:

void currentLoopChanged(int currentLoop)

Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#currentLoop

currentLoopChanged

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

Native PythonQt.QtCore.QAbstractAnimation.currentLoopChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractAnimation::currentLoopChanged(int currentLoop)

QAbstractAnimation emits this signal whenever the current loop changes. currentLoop is the current loop.

Note: Notifier signal for property currentLoop.

See also currentLoop() and loopCount().

Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#currentLoopChanged

currentLoopTime

currentLoopTime() -> int

X.currentLoopTime() -> int

Supplemental documentation: Qt 5 reference:

int QAbstractAnimation::currentLoopTime() const

Returns the current time inside the current loop. It can go from 0 to duration().

See also duration() and currentTime.

Upstream PySide2 reference signatures (binding differences may apply):

currentLoopTime(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#currentLoopTime

currentTime instance-attribute

currentTime: int

Qt 5 reference:

currentTime : int

This property holds the current time and progress of the animation

This property describes the animation's current time. You can change the current time by calling setCurrentTime, or you can call start() and let the animation run, setting the current time automatically as the animation progresses.

The animation's current time starts at 0, and ends at totalDuration().

Access functions:

int currentTime() const
void setCurrentTime(int msecs)

See also loopCount and currentLoopTime().

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

customEvent

customEvent(event: Any) -> Any

X.customEvent(event)

delete

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

Deletes the C++ object (at your own risk, my friend!)

deleteLater

deleteLater() -> Any

X.deleteLater()

destroyed

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

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

direction instance-attribute

direction: Any

Qt 5 reference:

direction : Direction

This property holds the direction of the animation when it is in Running state.

This direction indicates whether the time moves from 0 towards the animation 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:

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

Notifier signal:

void directionChanged(QAbstractAnimation::Direction newDirection)

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

directionChanged

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

Native PythonQt.QtCore.QAbstractAnimation.directionChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractAnimation::directionChanged(QAbstractAnimation::Direction newDirection)

QAbstractAnimation emits this signal whenever the direction has been changed. newDirection is the new direction.

Note: Notifier signal for property direction.

See also direction.

Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#directionChanged

disconnect

disconnect(signal: Any, receiver: Any, slot: Any) -> bool

X.disconnect(signal, receiver, slot) -> bool

dumpObjectInfo

dumpObjectInfo() -> Any

X.dumpObjectInfo()

dumpObjectTree

dumpObjectTree() -> Any

X.dumpObjectTree()

duration instance-attribute

duration: int

Qt 5 reference:

duration : const int

This property holds the duration of the animation.

If the duration is -1, it means that the duration is undefined. In this case, loopCount is ignored.

Access functions:

virtual int duration() const \= 0

[pure virtual] int QAbstractAnimation::duration() const

This pure virtual function returns the duration of the animation, and defines for how long QAbstractAnimation should update the current time. This duration is local, and does not include the loop count.

A return value of -1 indicates that the animation has no defined duration; the animation should run forever until stopped. This is useful for animations that are not time driven, or where you cannot easily predict its duration (e.g., event driven audio playback in a game).

If the animation is a parallel QAnimationGroup, the duration will be the longest duration of all its animations. If the animation is a sequential QAnimationGroup, the duration will be the sum of the duration of all its animations.

Note: Getter function for property duration.

See also loopCount.

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

dynamicPropertyNames

dynamicPropertyNames() -> Any

X.dynamicPropertyNames()

event

event(event: Any) -> bool

X.event(event) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QAbstractAnimation::event(QEvent *event)

Reimplements: QObject::event(QEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, event: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#event

eventFilter

eventFilter(watched: Any, event: Any) -> bool

X.eventFilter(watched, event) -> bool

findChild

findChild(type: Any, name: Any) -> Any

X.findChild(type, name) -> PythonQt.private.QObject

findChildren

findChildren(type: Any, name: Any) -> tuple

X.findChildren(type, name) -> tuple

finished

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

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

Supplemental documentation: Qt 5 reference:

[signal] void QAbstractAnimation::finished()

QAbstractAnimation emits this signal after the animation has stopped and has reached the end.

This signal is emitted after stateChanged().

See also stateChanged().

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

group

group() -> Any

X.group() -> PythonQt.QtCore.QAnimationGroup

Supplemental documentation: Qt 5 reference:

QAnimationGroup *QAbstractAnimation::group() const

If this animation is part of a QAnimationGroup, this function returns a pointer to the group; otherwise, it returns nullptr.

See also QAnimationGroup::addAnimation().

Upstream PySide2 reference signatures (binding differences may apply):

group(self) -> PySide2.QtCore.QAnimationGroup

Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#group

help

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

Shows the help of available methods for this class

inherits

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

Returns if the class inherits or is of given type name

installEventFilter

installEventFilter(filterObj: Any) -> Any

X.installEventFilter(filterObj)

isSignalConnected

isSignalConnected(signal: Any) -> bool

X.isSignalConnected(signal) -> bool