Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.5.0 Beta1
-
None
-
Windows 11 with HDR support
-
-
8b888c3eb (dev), a1b37931e (6.5)
Description
Here's an example code:
#include <QtMultimediaWidgets> auto main(int argc, char **argv) -> int { qputenv("QT_MEDIA_BACKEND", "ffmpeg"); QApplication app{argc, argv}; QLabel label{"LABEL"}; label.show(); QVideoWidget video; QScreenCapture capture; capture.setActive(true); capture.setWindow(label.windowHandle()); QMediaCaptureSession session; session.setScreenCapture(&capture); session.setVideoSink(video.videoSink()); video.show(); return app.exec(); }
You can see a QVideoWidget window which shows a capture of simple label window using QMediaCaptureSession.
When HDR is turned off, the captured result seems fine.
However, once HDR is turned on, captured preview shows dark image as in attachment.
I took a picture with my camera because this darkened image does not appear in print-screen-ed image somehow.