Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在两个不同的 QVideoWidgets 上(同时)复制 QCamera 的流。有什么办法吗?
不幸的是,如果您使用内置 api,一次只能将一个显示输出附加到媒体对象。您必须使用 aa从相机QCameraImageCapture中显式捕获s。QVideoFrame然后,您可以在任何小部件上显示它们,例如QLabel通过创建一个包含视频数据的像素图。
QCameraImageCapture
QVideoFrame
QLabel