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

[Reg 5.3->5.4] QClipboard fails to create DIB from image with transparency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.5.1
    • Component/s: QPA: Windows
    • Labels:
      None
    • Environment:
      Windows 7 / Windows 8.1, 64bit
    • Commits:
      bc867b179451a4c06c669f03f4598ea8799ad9f6 (qtbase/5.5, 25.8.2015, 5.5.1)

      Description

      Steps:
      1. Create a QImage object with transparency.
      2. Save the image to the clipboard using QClipboard::setImage.
      3. Paste the clipboard into other applications.
      Note: In Word and Outlook, the paste fails as the DIB (CF_DIB) is null.
      This used to work fine in 5.2.1 (as well as 4.8.6 and 4.7.4).

      I've attached clipboard output for comparison.

        Attachments

        1. CopyToClipboard_Qt521.html
          3 kB
        2. CopyToClipboard_Qt541.html
          4 kB
        3. CopyToClipboard.png
          CopyToClipboard.png
          9 kB
        4. qtbug47656_consecutivecopy_log.txt
          16 kB
        5. qtbug47656_diag.diff
          8 kB
        6. qtbug47656_diag2.diff
          5 kB
        7. qtbug47656_gimp_log.txt
          13 kB
        8. qtbug47656_gimppaste_log.txt
          2 kB
        9. qtbug47656_mspaint_log.txt
          14 kB
        10. qtbug47656_mspaintpaste_log.txt
          2 kB
        11. qtbug47656_word_log.txt
          16 kB
        12. qtbug47656.zip
          2 kB

          Issue Links

          For Gerrit Dashboard: QTBUG-47656
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              kaylx Kaylx
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes