1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QPauseAnimation Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QPauseAnimation Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QPauseAnimation class provides a pause for <a href="qsequentialanimationgroup.html">QSequentialAnimationGroup</a>.
<a href="#details">More...</a></p>
<p>Inherits <a href="qabstractanimation.html">QAbstractAnimation</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qpauseanimation.html#QPauseAnimation">__init__</a></b> (<i>self</i>, QObject <i>parent</i> = None)</li><li><div class="fn" /><b><a href="qpauseanimation.html#QPauseAnimation-2">__init__</a></b> (<i>self</i>, int <i>msecs</i>, QObject <i>parent</i> = None)</li><li><div class="fn" />int <b><a href="qpauseanimation.html#duration">duration</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qpauseanimation.html#event">event</a></b> (<i>self</i>, QEvent <i>e</i>)</li><li><div class="fn" /><b><a href="qpauseanimation.html#setDuration">setDuration</a></b> (<i>self</i>, int <i>msecs</i>)</li><li><div class="fn" /><b><a href="qpauseanimation.html#updateCurrentTime">updateCurrentTime</a></b> (<i>self</i>, int)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QPauseAnimation class provides a pause for <a href="qsequentialanimationgroup.html">QSequentialAnimationGroup</a>.</p>
<p>If you wish to introduce a delay between animations in a
<a href="qsequentialanimationgroup.html">QSequentialAnimationGroup</a>,
you can insert a QPauseAnimation. This class does not animate
anything, but does not <a href="qabstractanimation.html#finished">finish</a> before a specified
number of milliseconds have elapsed from when it was started. You
specify the duration of the pause in the constructor. It can also
be set directly with <a href="qpauseanimation.html#duration-prop">setDuration</a>().</p>
<p>It is not necessary to construct a QPauseAnimation yourself.
<a href="qsequentialanimationgroup.html">QSequentialAnimationGroup</a>
provides the convenience functions <a href="qsequentialanimationgroup.html#addPause">addPause()</a> and
<a href="qsequentialanimationgroup.html#insertPause">insertPause()</a>.
These functions simply take the number of milliseconds the pause
should last.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QPauseAnimation" />QPauseAnimation.__init__ (<i>self</i>, <a href="qobject.html">QObject</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qpauseanimation.html">QPauseAnimation</a>.
<i>parent</i> is passed to <a href="qobject.html">QObject</a>'s
constructor. The default duration is 0.</p>
<h3 class="fn"><a name="QPauseAnimation-2" />QPauseAnimation.__init__ (<i>self</i>, int <i>msecs</i>, <a href="qobject.html">QObject</a> <i>parent</i> = None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a <a href="qpauseanimation.html">QPauseAnimation</a>.
<i>msecs</i> is the duration of the pause. <i>parent</i> is passed
to <a href="qobject.html">QObject</a>'s constructor.</p>
<h3 class="fn"><a name="duration" />int QPauseAnimation.duration (<i>self</i>)</h3><h3 class="fn"><a name="event" />bool QPauseAnimation.event (<i>self</i>, <a href="qevent.html">QEvent</a> <i>e</i>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>
<h3 class="fn"><a name="setDuration" />QPauseAnimation.setDuration (<i>self</i>, int <i>msecs</i>)</h3><h3 class="fn"><a name="updateCurrentTime" />QPauseAnimation.updateCurrentTime (<i>self</i>, int)</h3><p>Reimplemented from <a href="qabstractanimation.html#updateCurrentTime">QAbstractAnimation.updateCurrentTime</a>().</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.9.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.2</td></tr></table></div></address></body></html>
|