Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108892

Preview of QScreenCapture with HDR display appears dark

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.5.0 Beta1
    • Multimedia
    • None
    • Windows 11 with HDR support
    • Windows
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            artemiy Artem Dyomin
            xylosper Byoung-young Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes