Phonon.VolumeSlider

Synopsis

Functions

Slots

Detailed Description

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 Phonon.AudioOutput it is connected to is muted. The icon can be removed with PySide.phonon.Phonon::VolumeSlider.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);

See also

Phonon Module

class PySide.phonon.Phonon.VolumeSlider(arg__1[, parent=None])
class PySide.phonon.Phonon.VolumeSlider([parent=None])
Parameters:

Constructs a new volume slider with the given output object and parent .

Constructs a new volume slider with the given parent .

PySide.phonon.Phonon.VolumeSlider.audioOutput()
Return type:PySide.phonon.Phonon::AudioOutput

See also

PySide.phonon.Phonon::VolumeSlider.setAudioOutput()

PySide.phonon.Phonon.VolumeSlider.hasTracking()
Return type:PySide.QtCore.bool

This property holds whether slider tracking is enabled.

If tracking is enabled (the default), the volume changes while the slider is being dragged. If tracking is disabled, the volume changes only when the user releases the slider.

PySide.phonon.Phonon.VolumeSlider.iconSize()
Return type:PySide.QtCore.QSize

This property holds the icon size used for the mute button/icon..

The default size is defined by the GUI style.

PySide.phonon.Phonon.VolumeSlider.isMuteVisible()
Return type:PySide.QtCore.bool

This property holds whether the mute button/icon next to the slider is visible.

By default the mute button/icon is visible.

PySide.phonon.Phonon.VolumeSlider.maximumVolume()
Return type:PySide.QtCore.qreal

This property holds the maximum volume that can be set with this slider.

By default the maximum value is 1.0 (100%).

PySide.phonon.Phonon.VolumeSlider.orientation()
Return type:PySide.QtCore.Qt.Orientation

This property holds the orientation of the slider.

The orientation must be Qt.Vertical (the default) or Qt.Horizontal .

PySide.phonon.Phonon.VolumeSlider.pageStep()
Return type:PySide.QtCore.int

This property holds the page step.

The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.

Defaults to 5 (5% of the voltage).

PySide.phonon.Phonon.VolumeSlider.setAudioOutput(arg__1)
Parameters:arg__1PySide.phonon.Phonon::AudioOutput
PySide.phonon.Phonon.VolumeSlider.setIconSize(size)
Parameters:sizePySide.QtCore.QSize

This property holds the icon size used for the mute button/icon..

The default size is defined by the GUI style.

PySide.phonon.Phonon.VolumeSlider.setMaximumVolume(arg__1)
Parameters:arg__1PySide.QtCore.qreal

This property holds the maximum volume that can be set with this slider.

By default the maximum value is 1.0 (100%).

PySide.phonon.Phonon.VolumeSlider.setMuteVisible(arg__1)
Parameters:arg__1PySide.QtCore.bool

This property holds whether the mute button/icon next to the slider is visible.

By default the mute button/icon is visible.

PySide.phonon.Phonon.VolumeSlider.setOrientation(arg__1)
Parameters:arg__1PySide.QtCore.Qt.Orientation

This property holds the orientation of the slider.

The orientation must be Qt.Vertical (the default) or Qt.Horizontal .

PySide.phonon.Phonon.VolumeSlider.setPageStep(milliseconds)
Parameters:millisecondsPySide.QtCore.int

This property holds the page step.

The larger of two natural steps that a slider provides and typically corresponds to the user pressing PageUp or PageDown.

Defaults to 5 (5% of the voltage).

PySide.phonon.Phonon.VolumeSlider.setSingleStep(milliseconds)
Parameters:millisecondsPySide.QtCore.int

This property holds the single step.

The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.

Defaults to 1 (1% of the voltage).

PySide.phonon.Phonon.VolumeSlider.setTracking(tracking)
Parameters:trackingPySide.QtCore.bool

This property holds whether slider tracking is enabled.

If tracking is enabled (the default), the volume changes while the slider is being dragged. If tracking is disabled, the volume changes only when the user releases the slider.

PySide.phonon.Phonon.VolumeSlider.singleStep()
Return type:PySide.QtCore.int

This property holds the single step.

The smaller of two natural steps that a slider provides and typically corresponds to the user pressing an arrow key.

Defaults to 1 (1% of the voltage).