Qt Multimedia Module C++ Classes

The Qt Multimedia module provides audio, video and camera functionality. More...

Namespaces

QAudio

Contains enums used by the audio classes

Classes

QAudioBuffer

Represents a collection of audio samples with a specific format and sample rate

QAudioDecoder

Implements decoding audio

QAudioDevice

Information about audio devices and their functionality

QAudioFormat

Stores audio stream parameter information

QAudioInput

Represents an input channel for audio

QAudioOutput

Represents an output channel for audio

QAudioSink

Interface for sending audio data to an audio output device

QAudioSource

Interface for receiving audio data from an audio input device

QCamera

Interface for system camera devices

QCameraDevice

General information about camera devices

QCameraFormat

Describes a video format supported by a camera device

QImageCapture

Used for the recording of media content

QMediaCaptureSession

Allows capturing of audio and video content

QMediaDevices

Information about available multimedia input and output devices

QMediaFormat

Describes an encoding format for a multimedia file or stream

QMediaMetaData

Provides meta-data for media files

QMediaPlayer

Allows the playing of a media files

QMediaRecorder

Used for encoding and recording a capture session

QMediaTimeRange

Represents a set of zero or more disjoint time intervals

QMediaTimeRange::Interval

QMediaTimeRange::Interval class represents a time interval with integer precision

QPlatformAudioSink

Base class for audio backends

QPlatformAudioSource

Access for QAudioSource to access the audio device provided by the plugin

QSoundEffect

Way to play low latency sound effects

QVideoFrame

Represents a frame of video data

QVideoFrameFormat

Specifies the stream format of a video presentation surface

QVideoSink

Represents a generic sink for video data

Detailed Description

To enable Qt Multimedia in a project, add this directive into your C++ files:

 #include <QtMultimedia>

Using the Module

Using a Qt module requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake.

Building with CMake

Use the find_package() command to locate the needed module components in the Qt6 package:

 find_package(Qt6 COMPONENTS Multimedia REQUIRED)
 target_link_libraries(mytarget PRIVATE Qt6::Multimedia)