Home · All Classes · Modules |
The SeekSlider class provides a slider for seeking to positions in media streams. More...
Inherits QWidget.
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();
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.
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.
Return the media object this SeekSlider controls.
See also setMediaObject().
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 setIconVisible(bool).
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().
This method is also a Qt slot with the C++ signature void setOrientation( ::Qt::Orientation).
PyQt 4.12.1 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |