qmovie.html
来自「QT 下载资料仅供参考」· HTML 代码 · 共 389 行 · 第 1/2 页
HTML
389 行
</h3>Connects the <em>receiver</em>'s <em>member</em> of type <tt>void member(const QSize&)</tt> so that it is signalled when the movie changes size.<p> Note that due to the <a href="shclass.html#explicit-sharing">explicit sharing</a> of QMovie objects, theseconnections persist until they are explicitly disconnected with<a href="#disconnectResize">disconnectResize</a>() or until <em>every</em> shared copy of the movie isdeleted.<p>Example: <a href="movies-example.html#x449">movies/main.cpp</a>.<h3 class=fn>void <a name="connectStatus"></a>QMovie::connectStatus ( <a href="qobject.html">QObject</a> * receiver, const char * member )</h3>Connects the <em>receiver</em>'s <em>member</em>, of type <tt>void member(int)</tt> so that it is signalled when the movie changesstatus. The status codes are negative for errors and positive forinformation.<p> <center><table cellpadding="4" cellspacing="2" border="0"><tr bgcolor="#a2c511"> <th valign="top">Status Code <th valign="top">Meaning<tr bgcolor="#f0f0f0"> <td valign="top">QMovie::SourceEmpty<td valign="top">signalled if the input cannot be read.<tr bgcolor="#d0d0d0"> <td valign="top">QMovie::UnrecognizedFormat<td valign="top">signalled if the input data is unrecognized.<tr bgcolor="#f0f0f0"> <td valign="top">QMovie::Paused<td valign="top">signalled when the movie is paused by a call to <a href="#paused">paused</a>()or by after <a href="#step">stepping</a> pauses.<tr bgcolor="#d0d0d0"> <td valign="top">QMovie::EndOfFrame<td valign="top">signalled at end-of-frame after any update and Paused signals.<tr bgcolor="#f0f0f0"> <td valign="top">QMovie::EndOfLoop<td valign="top">signalled at end-of-loop, after any update signals,EndOfFrame - but before EndOfMovie.<tr bgcolor="#d0d0d0"> <td valign="top">QMovie::EndOfMovie<td valign="top">signalled when the movie completes and is not about to loop.</table></center><p> More status messages may be added in the future, so a general testfor errors would test for negative.<p> Note that due to the <a href="shclass.html#explicit-sharing">explicit sharing</a> of QMovie objects, theseconnections persist until they are explicitly disconnected with<a href="#disconnectStatus">disconnectStatus</a>() or until <em>every</em> shared copy of the movie isdeleted.<p>Example: <a href="movies-example.html#x450">movies/main.cpp</a>.<h3 class=fn>void <a name="connectUpdate"></a>QMovie::connectUpdate ( <a href="qobject.html">QObject</a> * receiver, const char * member )</h3>Connects the <em>receiver</em>'s <em>member</em> of type <tt>void member(const QRect&)</tt> so that it is signalled when an area of the <a href="#framePixmap">framePixmap</a>()has changed since the previous frame.<p> Note that due to the <a href="shclass.html#explicit-sharing">explicit sharing</a> of QMovie objects, theseconnections persist until they are explicitly disconnected with<a href="#disconnectUpdate">disconnectUpdate</a>() or until <em>every</em> shared copy of the movie isdeleted.<p>Example: <a href="movies-example.html#x451">movies/main.cpp</a>.<h3 class=fn>void <a name="disconnectResize"></a>QMovie::disconnectResize ( <a href="qobject.html">QObject</a> * receiver, const char * member = 0 )</h3>Disconnects the <em>receiver</em>'s <em>member</em> (or all members if <em>member</em> is zero) that were previously connected by <a href="#connectResize">connectResize</a>().<h3 class=fn>void <a name="disconnectStatus"></a>QMovie::disconnectStatus ( <a href="qobject.html">QObject</a> * receiver, const char * member = 0 )</h3>Disconnects the <em>receiver</em>'s <em>member</em> (or all members if <em>member</em> is zero) that were previously connected by <a href="#connectStatus">connectStatus</a>().<h3 class=fn>void <a name="disconnectUpdate"></a>QMovie::disconnectUpdate ( <a href="qobject.html">QObject</a> * receiver, const char * member = 0 )</h3>Disconnects the <em>receiver</em>'s <em>member</em> (or all members if \qmember is zero) that were previously connected by <a href="#connectUpdate">connectUpdate</a>().<h3 class=fn>bool <a name="finished"></a>QMovie::finished () const</h3>Returns TRUE if the image is no longer playing: this happens whenall loops of all frames are complete; otherwise returns FALSE.<p>Example: <a href="movies-example.html#x452">movies/main.cpp</a>.<h3 class=fn>const <a href="qimage.html">QImage</a> & <a name="frameImage"></a>QMovie::frameImage () const</h3>Returns the current frame of the movie, as a <a href="qimage.html">QImage</a>. It is notgenerally useful to keep a copy of this image. Also note that youmust not call this function if the movie is <a href="#finished">finished</a>(), since bythen the image will not be available.<p> <p>See also <a href="#framePixmap">framePixmap</a>().<h3 class=fn>int <a name="frameNumber"></a>QMovie::frameNumber () const</h3>Returns the number of times EndOfFrame has been emitted since thestart of the current loop of the movie. Thus, before anyEndOfFrame has been emitted the value will be 0; within slotsprocessing the first signal, <a href="#frameNumber">frameNumber</a>() will be 1, and so on.<h3 class=fn>const <a href="qpixmap.html">QPixmap</a> & <a name="framePixmap"></a>QMovie::framePixmap () const</h3>Returns the current frame of the movie, as a <a href="qpixmap.html">QPixmap</a>. It is notgenerally useful to keep a copy of this pixmap. It is better tokeep a copy of the QMovie and get the <a href="#framePixmap">framePixmap</a>() only whenneeded for drawing.<p> <p>See also <a href="#frameImage">frameImage</a>().<p>Example: <a href="movies-example.html#x453">movies/main.cpp</a>.<h3 class=fn>const <a href="qrect.html">QRect</a> & <a name="getValidRect"></a>QMovie::getValidRect () const</h3>Returns the area of the pixmap for which pixels have beengenerated.<h3 class=fn>bool <a name="isNull"></a>QMovie::isNull () const</h3>Returns TRUE if the movie is null; otherwise returns FALSE.<h3 class=fn><a href="qmovie.html">QMovie</a> & <a name="operator-eq"></a>QMovie::operator= ( const <a href="qmovie.html">QMovie</a> & movie )</h3>Makes this movie use the same data as movie <em>movie</em>. QMovies use<a href="shclass.html#explicit-sharing">explicit sharing</a>.<h3 class=fn>void <a name="pause"></a>QMovie::pause ()</h3>Pauses the progress of the animation.<p> <p>See also <a href="#unpause">unpause</a>().<p>Example: <a href="movies-example.html#x454">movies/main.cpp</a>.<h3 class=fn>bool <a name="paused"></a>QMovie::paused () const</h3>Returns TRUE if the image is paused; otherwise returns FALSE.<p>Example: <a href="movies-example.html#x455">movies/main.cpp</a>.<h3 class=fn>void <a name="pushData"></a>QMovie::pushData ( const uchar * data, int length )</h3>Pushes <em>length</em> bytes from <em>data</em> into the movie. <em>length</em> mustbe no more than the amount returned by <a href="#pushSpace">pushSpace</a>() since theprevious call to <a href="#pushData">pushData</a>().<h3 class=fn>int <a name="pushSpace"></a>QMovie::pushSpace () const</h3>Returns the maximum amount of data that can currently be pushedinto the movie by a call to <a href="#pushData">pushData</a>(). This is affected by theinitial buffer size, but varies as the movie plays and data isconsumed.<h3 class=fn>void <a name="restart"></a>QMovie::restart ()</h3>Rewinds the movie to the beginning. If the movie has not beenpaused, it begins playing again.<p>Example: <a href="movies-example.html#x456">movies/main.cpp</a>.<h3 class=fn>bool <a name="running"></a>QMovie::running () const</h3>Returns TRUE if the image is not single-stepping, not paused, andnot finished; otherwise returns FALSE.<h3 class=fn>void <a name="setBackgroundColor"></a>QMovie::setBackgroundColor ( const <a href="qcolor.html">QColor</a> & c )</h3>Sets the background color of the pixmap to <em>c</em>. If the backgroundcolor isValid(), the pixmap will never have a mask because thebackground color will be used in transparent regions of the image.<p> <p>See also <a href="#backgroundColor">backgroundColor</a>().<h3 class=fn>void <a name="setSpeed"></a>QMovie::setSpeed ( int percent )</h3>Sets the movie's play speed as a percentage, to <em>percent</em>. Thisis a percentage of the speed dictated by the input data format.The default is 100 percent.<h3 class=fn>int <a name="speed"></a>QMovie::speed () const</h3>Returns the movie's play speed as a percentage. The default is 100percent.<p> <p>See also <a href="#setSpeed">setSpeed</a>().<h3 class=fn>void <a name="step"></a>QMovie::step ()</h3>Steps forward 1 frame and then pauses.<p>Example: <a href="movies-example.html#x457">movies/main.cpp</a>.<h3 class=fn>void <a name="step-2"></a>QMovie::step ( int steps )</h3>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.<p> Steps forward, showing <em>steps</em> frames, and then pauses.<h3 class=fn>int <a name="steps"></a>QMovie::steps () const</h3>Returns the number of steps remaining after a call to <a href="#step">step</a>(). Ifthe movie is paused, <a href="#steps">steps</a>() returns 0. If it's running normallyor is finished, steps() returns a negative number.<p>Example: <a href="movies-example.html#x458">movies/main.cpp</a>.<h3 class=fn>void <a name="unpause"></a>QMovie::unpause ()</h3>Unpauses the progress of the animation.<p> <p>See also <a href="#pause">pause</a>().<p>Example: <a href="movies-example.html#x459">movies/main.cpp</a>.<!-- eof --><hr><p>This file is part of the <a href="index.html">Qt toolkit</a>.Copyright © 1995-2002<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center><table width=100% cellspacing=0 border=0><tr><td>Copyright © 2002 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align=right><div align=right>Qt version 3.0.5</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?