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

QMimeData: wrong image pasted from clipboard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 6.2.1, 6.2.2, 6.2.3
    • Fix Version/s: 6.2.5, 6.3.1, 6.4.0
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      Windows 10 21H2, Windows 10 20H2, Windows 11, Qt 6.2.1, MSVC2019
    • Platform/s:
      Windows

      Description

      I have a strange issue on all my Windows platforms with Qt 6.2.1 and 6.2.2.
      I get a wrong image if I paste a screenshot of a window obtained with ALT+PRINT SCREEN.

      To replicate the issue:

      • compile and start the attached project (untitle.zip).
      • Press ALT+PRINT SCREEN and select a window (you can choose the application window)
      • Click Menu Edit -> Paste

      You should see the result of the attached image. The pasted image seems shifted.
      With Qt 5.15.2 all works fine.

      NOTE: pasting the screenshot on Microsoft Paint, then copy it into the clipboard and pasting on the Qt application solve the issue.

        Attachments

        1. image-2021-11-30-11-10-38-473.png
          6 kB
          Mirco Miranda
        2. untitled.zip
          5 kB
          Mirco Miranda

          Issue Links

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

            Activity

              People

              Assignee:
              vgt Eirik Aavitsland
              Reporter:
              mircomir Mirco Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes