Qt Multimedia 示例

示例该 Qt Multimedia 模块为基于 Qt 的应用程序提供了跨平台的多媒体功能。

下面列出的示例展示了各个领域的典型用例,包括低级音频示例、高级音频和视频播放,以及使用 C++ 和 QML 捕获和录制视听内容。

Audio Devices Example

列出可用的音频设备及其配置。

Audio Output Example

使用 QAudioSink 类启用音频播放。

Audio Recorder Example

发现可用设备和受支持的编解码器。

Audio Source Example

使用 QAudioSource 类录制音频。

Camera Example

演示如何捕获静止图像或录制视频。

Media Player

使用Qt Quick

Media Player Example

使用Qt Widgets 播放音频和视频。

QML Camera Application

这个基于Qt Quick 的应用程序演示了如何使用该API来捕获静止图像或视频。

QML Media Player Example

使用 QML MediaPlayer 类型播放音频和视频。

QML Video Example

转换视频和相机取景器内容。

QML Video Recorder

使用Qt Quick 录制音频和视频。

Qt Spatial Audio Examples

演示 Qt Spatial Audio 提供的空间音频功能

Screen Capture Example

捕获屏幕或窗口。

Video Graphics Item Example

在图形场景上流式传输视频。

Video Widget Example

实现视频播放器控件。

© 2026 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.