QAnimationDriver Class
The QAnimationDriver class is used to exchange the mechanism that drives animations. More...
Header: | #include <QAnimationDriver> |
Inherits: | QObject |
Public Functions
Signals
Protected Functions
void | advanceAnimation() |
Detailed Description
\inmodule
QtCore
The default animation system is driven by a timer that fires at regular intervals. In some scenarios, it is better to drive the animation based on other synchronization mechanisms, such as the vertical refresh rate of the screen.
\internal
Member Function Documentation
[virtual]
void QAnimationDriver::advance()
Advances the animation. This function should be continuously called by the driver while the animation is running.
[protected]
void QAnimationDriver::advanceAnimation()
Advances the animation. This function should be continuously called by the driver subclasses while the animation is running.
The calculation of the new current time will use elapsed() in combination with the internal time offsets of the animation system.
[virtual]
qint64 QAnimationDriver::elapsed() const
Returns the number of milliseconds since the animations was started.
void QAnimationDriver::install()
Installs this animation driver. The animation driver is thread local and will only apply for the thread its installed in.
[signal]
void QAnimationDriver::started()
This signal is emitted by the animation framework to notify the driver that continuous animation has started.
\internal
[signal]
void QAnimationDriver::stopped()
This signal is emitted by the animation framework to notify the driver that continuous animation has stopped.
\internal
void QAnimationDriver::uninstall()
Uninstalls this animation driver.