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

QMediaVolumeLabel Class Reference
[QtMediaModule]

The QMediaVolumeLabel class displays icons for the various levels of volume. More...

    #include <QMediaVolumeLabel>

Inherits QWidget.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

The QMediaVolumeLabel class displays icons for the various levels of volume.

The QMediaVolumeLabel class is useful for displaying standard icons for conveying volume information.

The display type can be set either by the constructor or by the setVolumeType() method.

    QMediaVolumeLabel *label = new QMediaVolumeLabel;
    label->setVolumeType( QMediaVolumeLabel::MuteVolume );

"QMediaVolumeLabel"


Member Type Documentation

enum QMediaVolumeLabel::Type

This enum type specifies the volume level icon.

ConstantValueDescription
QMediaVolumeLabel::MinimumVolume0Displays the icon representing minimum volume.
QMediaVolumeLabel::MaximumVolume1Displays the icon representing maximum volume.
QMediaVolumeLabel::MuteVolume2Displays the icon representing mute volume.


Member Function Documentation

QMediaVolumeLabel::QMediaVolumeLabel ( Type type = MinimumVolume, QWidget * parent = 0 )

Constructs a volume label with a default icon of type.

The parent argument is passed to the QWidget constructor.

QMediaVolumeLabel::~QMediaVolumeLabel ()

Destroys the label.

void QMediaVolumeLabel::setVolumeType ( Type type )

Displays the icon for type.

See also volumeType().

Type QMediaVolumeLabel::volumeType () const

Returns the current display type.

See also setVolumeType().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3