WindowCapture QML Type
该类型用于捕捉窗口。更多
Import Statement: | import QtMultimedia |
Since: | Qt 6.6 |
In C++: | QWindowCapture |
属性
- active : bool
- error : enumeration
- errorString : string
- window : Window
方法
- list<CapturableWindow> capturableWindows()
- start()
- stop()
详细说明
WindowCapture 可捕获窗口。它由 MediaCaptureSession 管理,捕获的窗口可显示在视频预览对象中或录制到文件中。
窗口捕捉限制
使用 WindowCapture 时有以下限制:
- WindowCapture 仅支持 FFmpeg 后端。
另请参阅 CaptureSession 和CapturableWindow 。
属性文档
active : bool |
描述捕捉当前是否激活。
error : enumeration |
返回上次错误的代码。
errorString : string |
返回描述错误原因的可读字符串。
window : Window |
描述捕捉窗口。
方法文档
list<CapturableWindow> capturableWindows() |
返回可用于捕获的CapturableWindow 对象列表。
start() |
stop() |
© 2025 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.