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

Clipboard images lose transparency / alpha channel

XMLWordPrintable

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

      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) 

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

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

              Created:
              Updated:

                There are no open Gerrit changes