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

Clipboard images lose transparency / alpha channel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.1
    • QPA: Windows
    • None
    • Windows 11, MSVC 2019 64 bit, Qt 6.7.1
    • Windows

    Description

      Please run the attached standalone example which:

      1. Creates a square with a transparent square in the middle.
      2. Saves this ("output.png")
      3. Loads this image into the clipboard.

      If we inspect the saved image we can see it is a PNG with transparency. However, when loading it into the clipboard the clipboard history shows the transparent section as black.

      Pasting is problematic, some applications are able to paste the image with the correct transparency but most fill it with black.

      Works: MS Paint

      Doesn't work: MS office suite (word, powerpoint, excel) 

      Attachments

        Issue Links

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

          Activity

            People

              owolff Oliver Wolff
              hw97 Habib Wahab
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes