Home · All Classes · Modules

Phonon.SeekSlider Class Reference
[phonon module]

The SeekSlider class provides a slider for seeking to positions in media streams. More...

Inherits QWidget.

Methods


Detailed Description

The SeekSlider class provides a slider for seeking to positions in media streams.

The SeekSlider connects to a MediaObject, and controls the seek position in the object's media stream.

The slider will connect to the necessary signals to keep track of the sliders maximum, minimum, and current values. It will also disable itself for non-seekable streams, and update the media object when the current value of the slider changes.

Here follows a typical example of SeekSlider usage:

     Phonon.MediaObject *moo = new Phonon.MediaObject;;
     Phonon.AudioOutput *device = new Phonon.AudioOutput;
     Phonon.createPath(moo, device);
     moo->setCurrentSource(QString("/home/gvatteka/Music/Lumme-Badloop.ogg"));

     Phonon.SeekSlider *slider = new Phonon.SeekSlider;
     slider->setMediaObject(moo);

     slider->show();
     moo->play();

See also Phonon.VolumeSlider, Phonon.VideoWidget, Music Player Example, and Phonon Module.


Method Documentation

SeekSlider.__init__ (self, QWidget parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs a seek slider widget with the given parent.

SeekSlider.__init__ (self, MediaObject, QWidget parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs a seek slider widget for the specified media with the given parent.

bool SeekSlider.hasTracking (self)

QSize SeekSlider.iconSize (self)

bool SeekSlider.isIconVisible (self)

MediaObject SeekSlider.mediaObject (self)

Return the media object this SeekSlider controls.

See also setMediaObject().

Qt.Orientation SeekSlider.orientation (self)

int SeekSlider.pageStep (self)

SeekSlider.setIconSize (self, QSize)

This method is also a Qt slot with the C++ signature void setIconSize(const QSize&).

SeekSlider.setIconVisible (self, bool)

This method is also a Qt slot with the C++ signature void setIconVisible(bool).

SeekSlider.setMediaObject (self, MediaObject)

This method is also a Qt slot with the C++ signature void setMediaObject(Phonon::MediaObject *).

Sets the media object to be controlled by this slider to the media specified.

See also mediaObject().

SeekSlider.setOrientation (self, Qt.Orientation)

This method is also a Qt slot with the C++ signature void setOrientation(Qt::Orientation).

SeekSlider.setPageStep (self, int)

SeekSlider.setSingleStep (self, int)

SeekSlider.setTracking (self, bool)

int SeekSlider.singleStep (self)


PyQt 4.7.3 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.6.2