I need to replicate the stream of a QCamera on two different QVideoWidgets (at the same time). Is there any way?
Unfortunately, only a single display output can be attached to a media object at one time if you use the built-in api. You'll have to use a a QCameraImageCapture
to explicitly capture QVideoFrame
s from the camera. You can then display them on any widget, e.g. a QLabel
by creating an pixmap that wraps the video data.