6
6
td.postheader { font-family: sans-serif }
7
7
tr.address { font-family: sans-serif }
8
8
body { background: #ffffff; color: black; }
9
</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="../pyqt4ref.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">Phonon.VolumeSlider Class Reference<br /><sup><sup>[<a href="phonon.html">phonon</a> module]</sup></sup></h1><p>The VolumeSlider widget provides a slider that is used to control the volume of an audio output device. <a href="#details">More...</a></p>
10
<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="phonon-volumeslider.html#VolumeSlider">__init__</a></b> (<i>self</i>, QWidget <i>parent</i> = None)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#VolumeSlider-2">__init__</a></b> (<i>self</i>, AudioOutput, QWidget <i>parent</i> = None)</li><li><div class="fn" />AudioOutput <b><a href="phonon-volumeslider.html#audioOutput">audioOutput</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="phonon-volumeslider.html#hasTracking">hasTracking</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="phonon-volumeslider.html#iconSize">iconSize</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="phonon-volumeslider.html#isMuteVisible">isMuteVisible</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="phonon-volumeslider.html#maximumVolume">maximumVolume</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.Orientation <b><a href="phonon-volumeslider.html#orientation">orientation</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="phonon-volumeslider.html#pageStep">pageStep</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setAudioOutput">setAudioOutput</a></b> (<i>self</i>, AudioOutput)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setIconSize">setIconSize</a></b> (<i>self</i>, QSize)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setMaximumVolume">setMaximumVolume</a></b> (<i>self</i>, float)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setMuteVisible">setMuteVisible</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setOrientation">setOrientation</a></b> (<i>self</i>, Qt.Orientation)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setPageStep">setPageStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setSingleStep">setSingleStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setTracking">setTracking</a></b> (<i>self</i>, bool)</li><li><div class="fn" />int <b><a href="phonon-volumeslider.html#singleStep">singleStep</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The VolumeSlider widget provides a slider that is used to control the volume of an audio output device.</p>
11
<p>The slider also displays an icon indicating if the volume of the <a href="phonon-audiooutput.html">AudioOutput</a> it is connected to is muted. The icon can be removed with <a href="phonon-volumeslider.html#muteVisible-prop">setMuteVisible</a>().</p>
12
<p>It is possible to set the <a href="phonon-volumeslider.html#maximumVolume-prop">maximum</a> value of the slider. By default, the minimum and maximum values of the slider are 0.0 (no sound) to 1.0 (the maximum volume the audio output can produce).</p>
9
</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="../pyqt4ref.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">Phonon.VolumeSlider Class Reference<br /><sup><sup>[<a href="phonon.html">phonon</a> module]</sup></sup></h1><p>The VolumeSlider widget provides a slider that is used to
10
control the volume of an audio output device. <a href="#details">More...</a></p>
12
<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="phonon-volumeslider.html#VolumeSlider">__init__</a></b> (<i>self</i>, QWidget <i>parent</i> = None)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#VolumeSlider-2">__init__</a></b> (<i>self</i>, AudioOutput, QWidget <i>parent</i> = None)</li><li><div class="fn" />AudioOutput <b><a href="phonon-volumeslider.html#audioOutput">audioOutput</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="phonon-volumeslider.html#hasTracking">hasTracking</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="phonon-volumeslider.html#iconSize">iconSize</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="phonon-volumeslider.html#isMuteVisible">isMuteVisible</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="phonon-volumeslider.html#maximumVolume">maximumVolume</a></b> (<i>self</i>)</li><li><div class="fn" />Qt.Orientation <b><a href="phonon-volumeslider.html#orientation">orientation</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="phonon-volumeslider.html#pageStep">pageStep</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setAudioOutput">setAudioOutput</a></b> (<i>self</i>, AudioOutput)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setIconSize">setIconSize</a></b> (<i>self</i>, QSize)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setMaximumVolume">setMaximumVolume</a></b> (<i>self</i>, float)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setMuteVisible">setMuteVisible</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setOrientation">setOrientation</a></b> (<i>self</i>, Qt.Orientation)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setPageStep">setPageStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setSingleStep">setSingleStep</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="phonon-volumeslider.html#setTracking">setTracking</a></b> (<i>self</i>, bool)</li><li><div class="fn" />int <b><a href="phonon-volumeslider.html#singleStep">singleStep</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The VolumeSlider widget provides a slider that is used to
13
control the volume of an audio output device.</p>
14
<p>The slider also displays an icon indicating if the volume of the
15
<a href="phonon-audiooutput.html">AudioOutput</a> it is connected
16
to is muted. The icon can be removed with <a href="phonon-volumeslider.html#muteVisible-prop">setMuteVisible</a>().</p>
17
<p>It is possible to set the <a href="phonon-volumeslider.html#maximumVolume-prop">maximum</a> value of
18
the slider. By default, the minimum and maximum values of the
19
slider are 0.0 (no sound) to 1.0 (the maximum volume the audio
20
output can produce).</p>
13
21
<p>Here follows a code example:</p>
14
<pre> Phonon.AudioOutput *audioOutput = new Phonon.AudioOutput(Phonon.MusicCategory);
22
<pre class="highlightedCode brush: cpp">
23
Phonon.AudioOutput *audioOutput = new Phonon.AudioOutput(Phonon.MusicCategory);
15
24
Phonon.createPath(mediaObject, audioOutput);
17
26
Phonon.VolumeSlider *volumeSlider = new Phonon.VolumeSlider;
18
volumeSlider->setAudioOutput(audioOutput);</pre>
19
<p>See also <a href="phonon-module.html">Phonon Module</a>.</p>
20
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="VolumeSlider" />VolumeSlider.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</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 new volume slider with the given <i>parent</i>.</p>
21
<h3 class="fn"><a name="VolumeSlider-2" />VolumeSlider.__init__ (<i>self</i>, <a href="phonon-audiooutput.html">AudioOutput</a>, <a href="qwidget.html">QWidget</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 new volume slider with the given <i>output</i> object and <i>parent</i>.</p>
22
<a name="//apple_ref/cpp/instm/Phonon::VolumeSlider/~VolumeSlider" />
23
<h3 class="fn"><a name="audioOutput" /><a href="phonon-audiooutput.html">AudioOutput</a> VolumeSlider.audioOutput (<i>self</i>)</h3><p>See also <a href="phonon-volumeslider.html#setAudioOutput">setAudioOutput</a>().</p>
24
<a name="//apple_ref/cpp/instm/Phonon::VolumeSlider/setAudioOutput" />
25
<h3 class="fn"><a name="hasTracking" />bool VolumeSlider.hasTracking (<i>self</i>)</h3><h3 class="fn"><a name="iconSize" /><a href="qsize.html">QSize</a> VolumeSlider.iconSize (<i>self</i>)</h3><h3 class="fn"><a name="isMuteVisible" />bool VolumeSlider.isMuteVisible (<i>self</i>)</h3><h3 class="fn"><a name="maximumVolume" />float VolumeSlider.maximumVolume (<i>self</i>)</h3><h3 class="fn"><a name="orientation" /><a href="qt.html#Orientation-enum">Qt.Orientation</a> VolumeSlider.orientation (<i>self</i>)</h3><h3 class="fn"><a name="pageStep" />int VolumeSlider.pageStep (<i>self</i>)</h3><h3 class="fn"><a name="setAudioOutput" />VolumeSlider.setAudioOutput (<i>self</i>, <a href="phonon-audiooutput.html">AudioOutput</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setAudioOutput(Phonon::AudioOutput *)</tt>.</p><p>Sets the audio output object to be controlled by this slider to the specified <i>output</i> object.</p>
26
<p>See also <a href="phonon-volumeslider.html#audioOutput">audioOutput</a>().</p>
27
<p /><h3 class="fn"><a name="setIconSize" />VolumeSlider.setIconSize (<i>self</i>, <a href="qsize.html">QSize</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setIconSize(const QSize&)</tt>.</p><h3 class="fn"><a name="setMaximumVolume" />VolumeSlider.setMaximumVolume (<i>self</i>, float)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setMaximumVolume(qreal)</tt>.</p><h3 class="fn"><a name="setMuteVisible" />VolumeSlider.setMuteVisible (<i>self</i>, bool)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setMuteVisible(bool)</tt>.</p><h3 class="fn"><a name="setOrientation" />VolumeSlider.setOrientation (<i>self</i>, <a href="qt.html#Orientation-enum">Qt.Orientation</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setOrientation(Qt::Orientation)</tt>.</p><h3 class="fn"><a name="setPageStep" />VolumeSlider.setPageStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setSingleStep" />VolumeSlider.setSingleStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setTracking" />VolumeSlider.setTracking (<i>self</i>, bool)</h3><h3 class="fn"><a name="singleStep" />int VolumeSlider.singleStep (<i>self</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.7 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> 2010</td><td align="right" width="25%">Qt 4.6.3</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'
27
volumeSlider->setAudioOutput(audioOutput);
28
</pre><hr /><h2>Method Documentation</h2><h3 class="fn"><a name="VolumeSlider" />VolumeSlider.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</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 new volume slider with the given <i>parent</i>.</p>
31
<h3 class="fn"><a name="VolumeSlider-2" />VolumeSlider.__init__ (<i>self</i>, <a href="phonon-audiooutput.html">AudioOutput</a>, <a href="qwidget.html">QWidget</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 new volume slider with the given <i>output</i>
32
object and <i>parent</i>.</p>
35
<h3 class="fn"><a name="audioOutput" /><a href="phonon-audiooutput.html">AudioOutput</a> VolumeSlider.audioOutput (<i>self</i>)</h3><h3 class="fn"><a name="hasTracking" />bool VolumeSlider.hasTracking (<i>self</i>)</h3><h3 class="fn"><a name="iconSize" /><a href="qsize.html">QSize</a> VolumeSlider.iconSize (<i>self</i>)</h3><h3 class="fn"><a name="isMuteVisible" />bool VolumeSlider.isMuteVisible (<i>self</i>)</h3><h3 class="fn"><a name="maximumVolume" />float VolumeSlider.maximumVolume (<i>self</i>)</h3><h3 class="fn"><a name="orientation" /><a href="qt.html#Orientation-enum">Qt.Orientation</a> VolumeSlider.orientation (<i>self</i>)</h3><h3 class="fn"><a name="pageStep" />int VolumeSlider.pageStep (<i>self</i>)</h3><h3 class="fn"><a name="setAudioOutput" />VolumeSlider.setAudioOutput (<i>self</i>, <a href="phonon-audiooutput.html">AudioOutput</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setAudioOutput(Phonon::AudioOutput *)</tt>.</p><p>Sets the audio output object to be controlled by this slider to
36
the specified <i>output</i> object.</p>
37
<p>See also <a href="phonon-volumeslider.html#audioOutputx">audioOutput</a>().</p>
38
<h3 class="fn"><a name="setIconSize" />VolumeSlider.setIconSize (<i>self</i>, <a href="qsize.html">QSize</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setIconSize(const QSize&)</tt>.</p><h3 class="fn"><a name="setMaximumVolume" />VolumeSlider.setMaximumVolume (<i>self</i>, float)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setMaximumVolume(qreal)</tt>.</p><h3 class="fn"><a name="setMuteVisible" />VolumeSlider.setMuteVisible (<i>self</i>, bool)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setMuteVisible(bool)</tt>.</p><h3 class="fn"><a name="setOrientation" />VolumeSlider.setOrientation (<i>self</i>, <a href="qt.html#Orientation-enum">Qt.Orientation</a>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setOrientation(Qt::Orientation)</tt>.</p><h3 class="fn"><a name="setPageStep" />VolumeSlider.setPageStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setSingleStep" />VolumeSlider.setSingleStep (<i>self</i>, int)</h3><h3 class="fn"><a name="setTracking" />VolumeSlider.setTracking (<i>self</i>, bool)</h3><h3 class="fn"><a name="singleStep" />int VolumeSlider.singleStep (<i>self</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.8.1 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> 2010</td><td align="right" width="25%">Qt 4.7.0</td></tr></table></div></address></body></html>
b'\\ No newline at end of file'