Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMediaVolumeWidget Class Reference
[QtMediaModule]

The QMediaVolumeWidget class displays the current volume level of a media content object as a progress bar. More...

    #include <QMediaVolumeWidget>

Inherits QWidget.

Public Functions

Public Slots

Additional Inherited Members


Detailed Description

The QMediaVolumeWidget class displays the current volume level of a media content object as a progress bar.

The QMediaVolumeWidget class can be used in conjunction with the QMediaContent class to display the current volume of a media content object.

    QMediaVolumeWidget *volume = new QMediaVolumeWidget( this );

    QMediaContent *content = new QMediaContent( url, this );
    progress->setMediaContent( content );

In addition the user is able to control the volume by holding down the left and right arrow keys. A hold of Qt::Key_Left decreases the volume while a hold of Qt::Key_Right increases the volume.

"QMediaVolumeWidget"

QMediaVolumeWidget is a player object.


Member Function Documentation

QMediaVolumeWidget::QMediaVolumeWidget ( QWidget * parent = 0 )

The parent argument is passed to the QWidget constructor.

QMediaVolumeWidget::~QMediaVolumeWidget ()

Destroys the widget.

QMediaContent * QMediaVolumeWidget::content () const

Returns the media content object currently being used.

void QMediaVolumeWidget::setMediaContent ( QMediaContent * content )   [slot]

Sets content as the media content object to use.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3