Qt Multimedia QML Types

The QML types for Qt Multimedia support the basic use cases such as:

  • audio and video playback,
  • access camera and radio functionality,
  • record video,
  • and access camera settings.

QML Types

Qt Multimedia QML types can be imported into your application using the following import statement in your .qml file:

import QtMultimedia 5.15

Audio

Add audio playback to a scene

Camera

Access viewfinder frames, and take photos and movies

CameraCapture

An interface for capturing camera images

CameraExposure

An interface for exposure related camera settings

CameraFlash

An interface for flash related camera settings

CameraFocus

An interface for focus related camera settings

CameraImageProcessing

An interface for camera capture related settings

CameraRecorder

Controls video recording with the Camera

MediaPlayer

Add media playback to a scene

Playlist

For specifying a list of media to be played

PlaylistItem

Defines an item in a Playlist

QtMultimedia

Provides a global object with useful functions from Qt Multimedia

RadioData

Access RDS data from a QML application

SoundEffect

Type provides a way to play sound effects in QML

Torch

Simple control over torch functionality

Video

A convenience type for showing a specified video

VideoOutput

Render video or camera viewfinder

Qt Audio Engine

Qt Audio Engine provides types for 3D positional audio playback and content management. These types can be imported into your application using the following import statement in your .qml file:

import QtAudioEngine 1.15

AttenuationModelInverse

Defines a non-linear attenuation curve for a Sound

AttenuationModelLinear

Defines a linear attenuation curve for a Sound

AudioCategory

Control all active sound instances by group

AudioEngine

Organize all your 3d audio content in one place

AudioListener

Control global listener parameters

AudioSample

Load audio samples, mostly .wav

PlayVariation

Define a playback variation for sounds. So each time the playback of the same sound can be a slightly different even with the same AudioSample

Sound

Define a variety of samples and parameters to be used for SoundInstance

SoundInstance

Play 3d audio content

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.