Home · All Classes · Modules |
The VolumeSlider widget provides a slider that is used to control the volume of an audio output device. More...
Inherits QWidget.
The VolumeSlider widget provides a slider that is used to control the volume of an audio output device.
The slider also displays an icon indicating if the volume of the AudioOutput it is connected to is muted. The icon can be removed with setMuteVisible().
It is possible to set the maximum 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).
Here follows a code example:
Phonon.AudioOutput *audioOutput = new Phonon.AudioOutput(Phonon.MusicCategory); Phonon.createPath(mediaObject, audioOutput); Phonon.VolumeSlider *volumeSlider = new Phonon.VolumeSlider; volumeSlider->setAudioOutput(audioOutput);
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a new volume slider with the given parent.
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a new volume slider with the given output object and parent.
See also setAudioOutput().
This method is also a Qt slot with the C++ signature void setAudioOutput(Phonon::AudioOutput *).
Sets the audio output object to be controlled by this slider to the specified output object.
See also audioOutput().
This method is also a Qt slot with the C++ signature void setIconSize(const QSize&).
This method is also a Qt slot with the C++ signature void setMaximumVolume(qreal).
This method is also a Qt slot with the C++ signature void setMuteVisible(bool).
This method is also a Qt slot with the C++ signature void setOrientation(Qt::Orientation).
PyQt 4.9.4 for Windows | Copyright © Riverbank Computing Ltd and Nokia 2012 | Qt 4.8.2 |