PythonQt.QtCore.QAbstractAnimation · declarations 002
Back to PythonQt.QtCore.QAbstractAnimation
isWidgetType
isWidgetType() -> bool
X.isWidgetType() -> bool
isWindowType
isWindowType() -> bool
X.isWindowType() -> bool
killTimer
killTimer(id: Any) -> Any
X.killTimer(id)
loopCount
instance-attribute
loopCount: int
Qt 5 reference:
loopCount : int
This property holds the loop count of the animation
This property describes the loop count of the animation as an integer. By default this value is 1, indicating that the animation should run once only, and then stop. By changing it you can let the animation loop several times. With a value of 0, the animation will not run at all, and with a value of -1, the animation will loop forever until stopped. It is not supported to have loop on an animation that has an undefined duration. It will only run once.
Access functions:
| int | loopCount() const |
|---|---|
| void | setLoopCount(int loopCount) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#loopCount
metaObject
metaObject() -> Any
X.metaObject() -> PythonQt.QtCore.QMetaObject
moveToThread
moveToThread(thread: Any) -> Any
X.moveToThread(thread)
objectName
instance-attribute
objectName: Any
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractAnimation.objectNameChanged; argument details are not documented.
parent
parent() -> Any
X.parent() -> PythonQt.private.QObject
pause
pause() -> None
X.pause()
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractAnimation::pause()
Pauses the animation. When the animation is paused, state() returns Paused. The value of currentTime will remain unchanged until resume() or start() is called. If you want to continue from the current time, call resume().
See also start(), state(), and resume().
Upstream PySide2 reference signatures (binding differences may apply):
pause(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#pause
property
property(name: Any) -> Any
X.property(name) -> object
removeEventFilter
removeEventFilter(obj: Any) -> Any
X.removeEventFilter(obj)
resume
resume() -> None
X.resume()
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractAnimation::resume()
Resumes the animation after it was paused. When the animation is resumed, it emits the resumed() and stateChanged() signals. The currenttime is not changed.
See also start(), pause(), and state().
Upstream PySide2 reference signatures (binding differences may apply):
resume(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#resume
sender
sender() -> Any
X.sender() -> PythonQt.private.QObject
senderSignalIndex
senderSignalIndex() -> int
X.senderSignalIndex() -> int
setCurrentTime
setCurrentTime(msecs: int) -> None
X.setCurrentTime(msecs)
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentTime(self, msecs: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#setCurrentTime
setDirection
setDirection(direction: Any) -> None
X.setDirection(direction)
Upstream PySide2 reference signatures (binding differences may apply):
setDirection(self, direction: PySide2.QtCore.QAbstractAnimation.Direction) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#setDirection
setLoopCount
setLoopCount(loopCount: int) -> None
X.setLoopCount(loopCount)
Upstream PySide2 reference signatures (binding differences may apply):
setLoopCount(self, loopCount: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#setLoopCount
setObjectName
setObjectName(name: Any) -> Any
X.setObjectName(name)
setParent
setParent(parent: Any) -> Any
X.setParent(parent)
setPaused
setPaused(a: Any) -> None
X.setPaused(a)
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractAnimation::setPaused(bool paused)
If paused is true, the animation is paused. If paused is false, the animation is resumed.
See also state(), pause(), and resume().
Upstream PySide2 reference signatures (binding differences may apply):
setPaused(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#setPaused
setProperty
setProperty(name: Any, value: Any) -> bool
X.setProperty(name, value) -> bool
signalsBlocked
signalsBlocked() -> bool
X.signalsBlocked() -> bool
start
start(policy: Any) -> None
X.start(policy)
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractAnimation::start(QAbstractAnimation::DeletionPolicy policy \= KeepWhenStopped)
Starts the animation. The policy argument says whether or not the animation should be deleted when it's done. When the animation starts, the stateChanged() signal is emitted, and state() returns Running. When control reaches the event loop, the animation will run by itself, periodically calling updateCurrentTime() as the animation progresses.
If the animation is currently stopped or has already reached the end, calling start() will rewind the animation and start again from the beginning. When the animation reaches the end, the animation will either stop, or if the loop level is more than 1, it will rewind and continue from the beginning.
If the animation is already running, this function does nothing.
Upstream PySide2 reference signatures (binding differences may apply):
start(self, policy: PySide2.QtCore.QAbstractAnimation.DeletionPolicy=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#start
startTimer
startTimer(interval: Any, timerType: Any) -> int
X.startTimer(interval, timerType) -> int
state
instance-attribute
state: Any
Qt 5 reference:
state : const State
state of the animation.
This property describes the current state of the animation. When the animation state changes, QAbstractAnimation emits the stateChanged() signal.
Access functions:
| QAbstractAnimation::State | state() const |
|---|---|
Notifier signal:
| void | stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#state
stateChanged
stateChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtCore.QAbstractAnimation.stateChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractAnimation::stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
QAbstractAnimation emits this signal whenever the state of the animation has changed from oldState to newState. This signal is emitted after the virtual updateState() function is called.
Note: Notifier signal for property state.
See also updateState().
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#stateChanged
stop
stop() -> None
X.stop()
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractAnimation::stop()
Stops the animation. When the animation is stopped, it emits the stateChanged() signal, and state() returns Stopped. The current time is not changed.
If the animation stops by itself after reaching the end (i.e., currentLoopTime() \=\= duration() and currentLoop() > loopCount() - 1), the finished() signal is emitted.
Upstream PySide2 reference signatures (binding differences may apply):
stop(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#stop
thread
thread() -> Any
X.thread()
timerEvent
timerEvent(event: Any) -> Any
X.timerEvent(event)
totalDuration
totalDuration() -> int
X.totalDuration() -> int
Supplemental documentation: Qt 5 reference:
int QAbstractAnimation::totalDuration() const
Returns the total and effective duration of the animation, including the loop count.
See also duration() and currentTime.
Upstream PySide2 reference signatures (binding differences may apply):
totalDuration(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#totalDuration
tr
tr(text: Any, ambig: Any, n: Any) -> str
X.tr(text, ambig, n) -> str
updateCurrentTime
updateCurrentTime(currentTime: int) -> None
X.updateCurrentTime(currentTime)
Supplemental documentation: Qt 5 reference:
[pure virtual protected] void QAbstractAnimation::updateCurrentTime(int currentTime)
This pure virtual function is called every time the animation's currentTime changes.
See also updateState().
Upstream PySide2 reference signatures (binding differences may apply):
updateCurrentTime(self, currentTime: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#updateCurrentTime
updateDirection
updateDirection(direction: Any) -> None
X.updateDirection(direction)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QAbstractAnimation::updateDirection(QAbstractAnimation::Direction direction)
This virtual function is called by QAbstractAnimation when the direction of the animation is changed. The direction argument is the new direction.
See also setDirection() and direction().
Upstream PySide2 reference signatures (binding differences may apply):
updateDirection(self, direction: PySide2.QtCore.QAbstractAnimation.Direction) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#updateDirection
updateState
updateState(newState: Any, oldState: Any) -> None
X.updateState(newState, oldState)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QAbstractAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
This virtual function is called by QAbstractAnimation when the state of the animation is changed from oldState to newState.
See also start(), stop(), pause(), and resume().
Upstream PySide2 reference signatures (binding differences may apply):
updateState(self, newState: PySide2.QtCore.QAbstractAnimation.State, oldState: PySide2.QtCore.QAbstractAnimation.State) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractanimation.html#updateState