Qt Multimedia 模塊 C++ 類

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

名稱空間

QAudio 包含用於音頻類的枚舉

QAudioBuffer 錶示具有特定格式和采樣率的一批音頻樣本
QAudioDecoder Implements decoding audio
QAudioDevice Information about audio devices and their functionality
QAudioFormat 存儲音頻流參數信息
QAudioInput Represents an input channel for audio
QAudioOutput Represents an output channel for audio
QAudioSink 把音頻數據發送到音頻輸齣設備的接口
QAudioSource 從音頻輸入設備接收音頻數據的接口
QCamera 係統攝像頭設備接口
QCameraDevice 有關攝像頭設備的一般信息
QCameraFormat Describes a video format supported by a camera device
QImageCapture 用於錄製媒體內容
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 錶示一組零個或多個不相交的時間間隔
QMediaTimeRange::Interval QMediaTimeRange::Interval class represents a time interval with integer precision
QScreenCapture Used for capturing a screen
QSoundEffect 播放低延遲音效的辦法
QVideoFrame 錶示視頻數據幀
QVideoFrameFormat 指定視頻呈現錶麵的流格式
QVideoSink Represents a generic sink for video data

詳細描述

使用模塊

使用 Qt 模塊要求直接或透過其它依賴鏈接到模塊庫。一些構建工具為此有貢獻支持,包括 CMake and qmake .

構建采用 CMake

使用 find_package() 命令定位所需模塊組件在 Qt6 包:

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