Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 1046

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmediaimageviewer.cpp -->
  <title>Qt Mobility 1.2: QMediaImageViewer Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtmultimediakit.html">QtMultimediaKit</a></li>
<li>QMediaImageViewer</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QMediaImageViewer Class Reference</h1>
<!-- $$$QMediaImageViewer-brief -->
<p>The QMediaImageViewer class provides a means of viewing image media. <a href="#details">More...</a></p>
<!-- @@@QMediaImageViewer -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QMediaImageViewer&gt;</span></pre><p><b>Inherits: </b><a href="qmediaobject.html">QMediaObject</a>.</p>
<p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qmediaimageviewer-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#MediaStatus-enum">MediaStatus</a></b> { NoMedia, LoadingMedia, LoadedMedia, InvalidMedia }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#State-enum">State</a></b> { StoppedState, PlayingState, PausedState }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a></b> : const int</li>
<li class="fn"><b><a href="qmediaimageviewer.html#media-prop">media</a></b> : QMediaContent</li>
<li class="fn"><b><a href="qmediaimageviewer.html#mediaStatus-prop">mediaStatus</a></b> : const MediaStatus</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qmediaimageviewer.html#state-prop">state</a></b> : const State</li>
<li class="fn"><b><a href="qmediaimageviewer.html#timeout-prop">timeout</a></b> : int</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">1 property inherited from <a href="qmediaobject.html#properties">QMediaObject</a></li>
<li class="fn">1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#QMediaImageViewer">QMediaImageViewer</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#dtor.QMediaImageViewer">~QMediaImageViewer</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMediaContent </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#media-prop">media</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> MediaStatus </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#mediaStatus-prop">mediaStatus</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMediaPlaylist * </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#playlist">playlist</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#setVideoOutput">setVideoOutput</a></b> ( QVideoWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#setVideoOutput-2">setVideoOutput</a></b> ( QGraphicsVideoItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#setVideoOutput-3">setVideoOutput</a></b> ( QAbstractVideoSurface * <i>surface</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> State </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#state-prop">state</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#timeout-prop">timeout</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">12 public functions inherited from <a href="qmediaobject.html#public-functions">QMediaObject</a></li>
<li class="fn">29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#pause">pause</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#play">play</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#media-prop">setMedia</a></b> ( const QMediaContent &amp; <i>media</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#setPlaylist">setPlaylist</a></b> ( QMediaPlaylist * <i>playlist</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#timeout-prop">setTimeout</a></b> ( int <i>timeout</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#stop">stop</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#elapsedTimeChanged">elapsedTimeChanged</a></b> ( int <i>time</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#mediaChanged">mediaChanged</a></b> ( const QMediaContent &amp; <i>media</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#mediaStatusChanged">mediaStatusChanged</a></b> ( QMediaImageViewer::MediaStatus <i>status</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaimageviewer.html#stateChanged">stateChanged</a></b> ( QMediaImageViewer::State <i>state</i> )</td></tr>
</table>
<ul>
<li class="fn">4 signals inherited from <a href="qmediaobject.html#signals">QMediaObject</a></li>
<li class="fn">1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public variable inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
<li class="fn">2 protected functions inherited from <a href="qmediaobject.html#protected-functions">QMediaObject</a></li>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QMediaImageViewer-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMediaImageViewer class provides a means of viewing image media.</p>
<p>QMediaImageViewer is used together with a media display object such as <a href="qvideowidget.html">QVideoWidget</a> to present an image. A display object is attached to the image viewer by means of the bind function.</p>
<pre class="cpp"> viewer <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QMediaImageViewer</span>(<span class="keyword">this</span>);

 videoWidget <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qvideowidget.html">QVideoWidget</a></span>;
 viewer<span class="operator">-</span><span class="operator">&gt;</span>bind(videoWidget);
 videoWidget<span class="operator">-</span><span class="operator">&gt;</span>show();</pre>
<p>QMediaImageViewer can be paired with a <a href="qmediaplaylist.html">QMediaPlaylist</a> to create a slide show of images. Constructing a <a href="qmediaplaylist.html">QMediaPlaylist</a> with a pointer to an instance of QMediaImageViewer will attach it to the image viewer; changing the playlist's selection will then change the media displayed by the image viewer. With a playlist attached QMediaImageViewer's <a href="qmediaimageviewer.html#play">play</a>(), <a href="qmediaimageviewer.html#pause">pause</a>(), and <a href="qmediaimageviewer.html#stop">stop</a>() slots can be control the progression of the playlist. The <a href="qmediaimageviewer.html#timeout-prop">timeout</a> property determines how long an image is displayed for before progressing to the next in the playlist, and the <a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a> property holds how the duration the current image has been displayed for.</p>
<pre class="cpp"> playlist <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qmediaplaylist.html">QMediaPlaylist</a></span>(<span class="keyword">this</span>);
 playlist<span class="operator">-</span><span class="operator">&gt;</span>setPlaybackMode(<span class="type"><a href="qmediaplaylist.html">QMediaPlaylist</a></span><span class="operator">::</span>Loop);
 playlist<span class="operator">-</span><span class="operator">&gt;</span>addMedia(image1);
 playlist<span class="operator">-</span><span class="operator">&gt;</span>addMedia(image2);
 playlist<span class="operator">-</span><span class="operator">&gt;</span>addMedia(image3);

 viewer<span class="operator">-</span><span class="operator">&gt;</span>setPlaylist(playlist);
 viewer<span class="operator">-</span><span class="operator">&gt;</span>setTimeout(<span class="number">5000</span>);
 viewer<span class="operator">-</span><span class="operator">&gt;</span>play();</pre>
</div>
<!-- @@@QMediaImageViewer -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$MediaStatus$$$NoMedia$$$LoadingMedia$$$LoadedMedia$$$InvalidMedia -->
<h3 class="fn"><a name="MediaStatus-enum"></a>enum QMediaImageViewer::<span class="name">MediaStatus</span></h3>
<p>Enumerates the status of an image viewer's current media.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::NoMedia</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">There is no current media.</td></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::LoadingMedia</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The image viewer is loading the current media.</td></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::LoadedMedia</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The image viewer has loaded the current media.</td></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::InvalidMedia</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The current media cannot be loaded.</td></tr>
</table>
<!-- @@@MediaStatus -->
<!-- $$$State$$$StoppedState$$$PlayingState$$$PausedState -->
<h3 class="fn"><a name="State-enum"></a>enum QMediaImageViewer::<span class="name">State</span></h3>
<p>Enumerates the possible control states an image viewer may be in. The control state of an image viewer determines whether the image viewer is automatically progressing through images in an attached playlist.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::StoppedState</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The image viewer is stopped, and will not automatically move to the next image. The <a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a> is fixed at 0.</td></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::PlayingState</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The slide show is playing, and will move to the next image when the <a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a> reaches the <a href="qmediaimageviewer.html#timeout-prop">timeout</a>. The <a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a> is being incremented.</td></tr>
<tr><td class="topAlign"><tt>QMediaImageViewer::PausedState</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The image viewer is paused, and will not automatically move the to next image. The <a href="qmediaimageviewer.html#elapsedTime-prop">elapsedTime</a> is fixed at the time the image viewer was paused.</td></tr>
</table>
<!-- @@@State -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$elapsedTime-prop$$$elapsedTime$$$elapsedTimeChangedint -->
<h3 class="fn"><a name="elapsedTime-prop"></a><span class="name">elapsedTime</span> : const <span class="type">int</span></h3>
<p>This property holds the amount of time in milliseconds that has elapsed since the current image was loaded.</p>
<p>The elapsed time only increases while the image viewer is in the <a href="qmediaimageviewer.html#State-enum">PlayingState</a>. If stopped the elapsed time will be reset to 0.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>elapsedTime</b></span> () const</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qmediaimageviewer.html#elapsedTimeChanged">elapsedTimeChanged</a></b></span> ( int <i>time</i> )</td></tr>
</table>
<!-- @@@elapsedTime -->
<!-- $$$media-prop$$$media$$$setMediaconstQMediaContent&$$$mediaChangedconstQMediaContent& -->
<h3 class="fn"><a name="media-prop"></a><span class="name">media</span> : <span class="type"><a href="qmediacontent.html">QMediaContent</a></span></h3>
<p>This property holds the media an image viewer is presenting.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QMediaContent </td><td class="memItemRight bottomAlign"><span class="name"><b>media</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMedia</b></span> ( const QMediaContent &amp; <i>media</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qmediaimageviewer.html#mediaChanged">mediaChanged</a></b></span> ( const QMediaContent &amp; <i>media</i> )</td></tr>
</table>
<!-- @@@media -->
<!-- $$$mediaStatus-prop$$$mediaStatus$$$mediaStatusChangedQMediaImageViewer::MediaStatus -->
<h3 class="fn"><a name="mediaStatus-prop"></a><span class="name">mediaStatus</span> : const <span class="type"><a href="qmediaimageviewer.html#MediaStatus-enum">MediaStatus</a></span></h3>
<p>This property holds the status of the current media.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> MediaStatus </td><td class="memItemRight bottomAlign"><span class="name"><b>mediaStatus</b></span> () const</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qmediaimageviewer.html#mediaStatusChanged">mediaStatusChanged</a></b></span> ( QMediaImageViewer::MediaStatus <i>status</i> )</td></tr>
</table>
<!-- @@@mediaStatus -->
<!-- $$$state-prop$$$state$$$stateChangedQMediaImageViewer::State -->
<h3 class="fn"><a name="state-prop"></a><span class="name">state</span> : const <span class="type"><a href="qmediaimageviewer.html#State-enum">State</a></span></h3>
<p>This property holds the playlist control state of a slide show.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> State </td><td class="memItemRight bottomAlign"><span class="name"><b>state</b></span> () const</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qmediaimageviewer.html#stateChanged">stateChanged</a></b></span> ( QMediaImageViewer::State <i>state</i> )</td></tr>
</table>
<!-- @@@state -->
<!-- $$$timeout-prop$$$timeout$$$setTimeoutint -->
<h3 class="fn"><a name="timeout-prop"></a><span class="name">timeout</span> : <span class="type">int</span></h3>
<p>This property holds the amount of time in milliseconds an image is displayed for before moving to the next image.</p>
<p>The timeout only applies if the image viewer has a playlist attached and is in the <a href="qmediaimageviewer.html#State-enum">PlayingState</a>.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>timeout</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTimeout</b></span> ( int <i>timeout</i> )</td></tr>
</table>
<!-- @@@timeout -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMediaImageViewer[overload1]$$$QMediaImageViewerQObject* -->
<h3 class="fn"><a name="QMediaImageViewer"></a>QMediaImageViewer::<span class="name">QMediaImageViewer</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a new image viewer with the given <i>parent</i>.</p>
<!-- @@@QMediaImageViewer -->
<!-- $$$~QMediaImageViewer[overload1]$$$~QMediaImageViewer -->
<h3 class="fn"><a name="dtor.QMediaImageViewer"></a>QMediaImageViewer::<span class="name">~QMediaImageViewer</span> ()</h3>
<p>Destroys an image viewer.</p>
<!-- @@@~QMediaImageViewer -->
<!-- $$$elapsedTimeChanged[overload1]$$$elapsedTimeChangedint -->
<h3 class="fn"><a name="elapsedTimeChanged"></a><span class="type">void</span> QMediaImageViewer::<span class="name">elapsedTimeChanged</span> ( <span class="type">int</span> <i>time</i> )<tt> [signal]</tt></h3>
<p>Signals that the amount of <i>time</i> in milliseconds since the current image was loaded has changed.</p>
<p>This signal is emitted at a regular interval when the image viewer is in the <a href="qmediaimageviewer.html#State-enum">PlayingState</a> and an image is loaded. The notification interval is controlled by the <a href="qmediaobject.html#notifyInterval-prop">QMediaObject::notifyInterval</a> property.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmediaimageviewer.html#timeout-prop">timeout</a> and <a href="qmediaobject.html#notifyInterval-prop">QMediaObject::notifyInterval</a>.</p>
<!-- @@@elapsedTimeChanged -->
<!-- $$$mediaChanged[overload1]$$$mediaChangedconstQMediaContent& -->
<h3 class="fn"><a name="mediaChanged"></a><span class="type">void</span> QMediaImageViewer::<span class="name">mediaChanged</span> ( const <span class="type"><a href="qmediacontent.html">QMediaContent</a></span> &amp; <i>media</i> )<tt> [signal]</tt></h3>
<p>Signals that the <i>media</i> an image viewer is presenting has changed.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@mediaChanged -->
<!-- $$$mediaStatusChanged[overload1]$$$mediaStatusChangedQMediaImageViewer::MediaStatus -->
<h3 class="fn"><a name="mediaStatusChanged"></a><span class="type">void</span> QMediaImageViewer::<span class="name">mediaStatusChanged</span> ( <span class="type"><a href="qmediaimageviewer.html#MediaStatus-enum">QMediaImageViewer::MediaStatus</a></span> <i>status</i> )<tt> [signal]</tt></h3>
<p>Signals the the <i>status</i> of the current media has changed.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@mediaStatusChanged -->
<!-- $$$pause[overload1]$$$pause -->
<h3 class="fn"><a name="pause"></a><span class="type">void</span> QMediaImageViewer::<span class="name">pause</span> ()<tt> [slot]</tt></h3>
<p>Pauses a slide show.</p>
<p>The current media and elapsed time are retained. If resumed, the current image will be displayed for the remainder of the time out period before the next image is loaded.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@pause -->
<!-- $$$play[overload1]$$$play -->
<h3 class="fn"><a name="play"></a><span class="type">void</span> QMediaImageViewer::<span class="name">play</span> ()<tt> [slot]</tt></h3>
<p>Starts a slide show.</p>
<p>If the playlist has no current media this will start at the beginning of the playlist, otherwise it will resume from the current media.</p>
<p>If no playlist is attached to an image viewer this will do nothing.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@play -->
<!-- $$$playlist[overload1]$$$playlist -->
<h3 class="fn"><a name="playlist"></a><span class="type"><a href="qmediaplaylist.html">QMediaPlaylist</a></span> * QMediaImageViewer::<span class="name">playlist</span> () const</h3>
<p>Returns the current playlist, or 0 if none.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmediaimageviewer.html#setPlaylist">setPlaylist</a>().</p>
<!-- @@@playlist -->
<!-- $$$setPlaylist[overload1]$$$setPlaylistQMediaPlaylist* -->
<h3 class="fn"><a name="setPlaylist"></a><span class="type">void</span> QMediaImageViewer::<span class="name">setPlaylist</span> ( <span class="type"><a href="qmediaplaylist.html">QMediaPlaylist</a></span> * <i>playlist</i> )<tt> [slot]</tt></h3>
<p>Use <i>playlist</i> as the source of images to be displayed in the viewer.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qmediaimageviewer.html#playlist">playlist</a>().</p>
<!-- @@@setPlaylist -->
<!-- $$$setVideoOutput[overload1]$$$setVideoOutputQVideoWidget* -->
<h3 class="fn"><a name="setVideoOutput"></a><span class="type">void</span> QMediaImageViewer::<span class="name">setVideoOutput</span> ( <span class="type"><a href="qvideowidget.html">QVideoWidget</a></span> * <i>widget</i> )</h3>
<p>Sets a video <i>widget</i> as the current video output.</p>
<p>This will unbind any previous video output bound with setVideoOutput().</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@setVideoOutput -->
<!-- $$$setVideoOutput$$$setVideoOutputQGraphicsVideoItem* -->
<h3 class="fn"><a name="setVideoOutput-2"></a><span class="type">void</span> QMediaImageViewer::<span class="name">setVideoOutput</span> ( <span class="type"><a href="qgraphicsvideoitem.html">QGraphicsVideoItem</a></span> * <i>item</i> )</h3>
<p>Sets a video <i>item</i> as the current video output.</p>
<p>This will unbind any previous video output bound with <a href="qmediaimageviewer.html#setVideoOutput">setVideoOutput</a>().</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@setVideoOutput -->
<!-- $$$setVideoOutput$$$setVideoOutputQAbstractVideoSurface* -->
<h3 class="fn"><a name="setVideoOutput-3"></a><span class="type">void</span> QMediaImageViewer::<span class="name">setVideoOutput</span> ( <span class="type"><a href="qabstractvideosurface.html">QAbstractVideoSurface</a></span> * <i>surface</i> )</h3>
<p>Sets a video <i>surface</i> as the video output of a image viewer.</p>
<p>If a video output has already been set on the image viewer the new surface will replace it.</p>
<p>This function was introduced in Qt Mobility 1.2.</p>
<!-- @@@setVideoOutput -->
<!-- $$$stateChanged[overload1]$$$stateChangedQMediaImageViewer::State -->
<h3 class="fn"><a name="stateChanged"></a><span class="type">void</span> QMediaImageViewer::<span class="name">stateChanged</span> ( <span class="type"><a href="qmediaimageviewer.html#State-enum">QMediaImageViewer::State</a></span> <i>state</i> )<tt> [signal]</tt></h3>
<p>Signals that the playlist control <i>state</i> of an image viewer has changed.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@stateChanged -->
<!-- $$$stop[overload1]$$$stop -->
<h3 class="fn"><a name="stop"></a><span class="type">void</span> QMediaImageViewer::<span class="name">stop</span> ()<tt> [slot]</tt></h3>
<p>Stops a slide show.</p>
<p>The current media is retained, but the elapsed time is discarded. If resumed, the current image will be displayed for the full time out period before the next image is loaded.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@stop -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>