QtMultimedia.qtmultimedia-index

Qt Multimedia is an essential module that provides a rich set of QML types and C++ classes to handle multimedia content. It also provides necessary APIs to access the camera and radio functionality. The included Qt Audio Engine provides types for 3D positional audio playback and management.

The Qt Multimedia Widgets module provides widget based multimedia classes.

Getting Started

The QML types can be imported into your applciation using the following import statement in your .qml file.

import QtMultimedia 5.4

If you intend to use the C++ classes in your application, include the C++ definitions using the following directive:

 #include <QtMultimedia>

Note: If you are using a few classes from this module, we recommend including those specific classes only instead of the module.

To link against the corresponding C++ libraries, add the following to your qmake project file:

QT += multimedia

QML Types and C++ Classes

The following is a list of important QML types and C++ classes provided by this module:

TypeDescription
AudioAdd audio playback functionality to a scene
PlaylistAdd playlist functionality
CameraAccess camera viewfinder frames
MediaPlayerAdd media playback functionality to a scene. It is same as Audio type, but can be used for video playback with the VideoOutput type.
RadioAccess radio functionality
VideoAdd Video playback functionality to a scene. It uses MediaPlayer and VideoOutput types to provide video playback functionality.
ClassDescription
QAudioOutputSends audio data to an audio output device
QCameraAccess camera viewfinder.
QCameraImageCaptureRecord media content. Intended to be used with QCamera to record media.
QMediaPlayerPlayback media from a source.
QMediaPlaylistList of media to be played.
QRadioTunerAccess radio device.
QVideoRendererControlControl video data.

Guides

Platform Notes

Reference

  • Qt Multimedia
    • QML Types
    • C++ Classes
  • Qt Audio Engine
    • QML Types

Examples

  • Qt Multimedia Examples