Phonon.SeekSlider Class Reference

[ phonon module]

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

继承 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();
			

方法文档编制

SeekSlider.__init__ ( self , QWidget   parent  = None)

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   media , QWidget   parent  = None)

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.

另请参阅 setMediaObject ().

Qt.Orientation SeekSlider.orientation ( self )

int SeekSlider.pageStep ( self )

SeekSlider.setIconSize ( self , QSize   size )

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 指定。

另请参阅 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  tracking )

int SeekSlider.singleStep ( self )