Qt Multimedia 示例
示例该 Qt Multimedia 模块为基于 Qt 的应用程序提供了跨平台的多媒体功能。
下面列出的示例展示了各个领域的典型用例,包括低级音频示例、高级音频和视频播放,以及使用 C++ 和 QML 捕获和录制视听内容。
列出可用的音频设备及其配置。 | |
使用 QAudioSink 类启用音频播放。 | |
发现可用设备和受支持的编解码器。 | |
使用 QAudioSource 类录制音频。 | |
演示如何捕获静止图像或录制视频。 | |
使用Qt Quick | |
使用Qt Widgets 播放音频和视频。 | |
这个基于Qt Quick 的应用程序演示了如何使用该API来捕获静止图像或视频。 | |
使用 QML MediaPlayer 类型播放音频和视频。 | |
转换视频和相机取景器内容。 | |
使用Qt Quick 录制音频和视频。 | |
演示 Qt Spatial Audio 提供的空间音频功能 | |
捕获屏幕或窗口。 | |
在图形场景上流式传输视频。 | |
实现视频播放器控件。 |
© 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.