QMediaVolumeLabel Class Reference
The QMediaVolumeLabel class displays icons for the various levels of volume. More...
#include <QMediaVolumeLabel>
Inherits QWidget.
Public Types
- enum Type { MinimumVolume, MaximumVolume, MuteVolume }
Public Functions
- 264 public functions inherited from QWidget
- 37 public functions inherited from QObject
- 20 public functions inherited from QPaintDevice
Additional Inherited Members
- 56 properties inherited from QWidget
- 1 property inherited from QObject
- 20 public slots inherited from QWidget
- 1 public slot inherited from QObject
- 1 signal inherited from QWidget
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 5 static public members inherited from QWidget
- 4 static public members inherited from QObject
- 13 static public members inherited from QPaintDevice
- 39 protected functions inherited from QWidget
- 8 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
- 1 protected slot inherited from QWidget
- 2 protected variables inherited from QObject
- 1 protected type inherited from QPaintDevice
- 1 static protected member inherited from QObject
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 );

Member Type Documentation
enum QMediaVolumeLabel::Type
This enum type specifies the volume level icon.
| Constant | Value | Description |
| QMediaVolumeLabel::MinimumVolume | 0 | Displays the icon representing minimum volume. |
| QMediaVolumeLabel::MaximumVolume | 1 | Displays the icon representing maximum volume. |
| QMediaVolumeLabel::MuteVolume | 2 | Displays 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().