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

grabWindow with custom geometry created distorted image on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.1
    • 5.11.1, 5.11.2, 5.12.0 Alpha
    • QPA
    • Qt 5.11.1 static build, macOS 10.13
    • macOS
    • eab84914f1a31984f4698bcbca170556a56fd6fb

    Description

      After upgrading to Qt 5.11.1, we noticed a strange behaviour when grabbing screen contents. Grabbing a screen with no explicit geometry or the full screen geometry works fine. But when specifying custom geometry, the image gets squashed vertically. I have attached an example program to reproduce the problem with, and two screenshots for comparison.

      Attachments

        1. cropped screen mix.png
          2.22 MB
          Johannes Schultz
        2. grab_screenshots.cpp
          1 kB
          Johannes Schultz
        3. grabWindow.mm
          2 kB
          Johannes Schultz
        4. qcocoascreen.mm
          13 kB
          Johannes Schultz
        5. screencapture-cutGeometry-screen0.png
          234 kB
          Johannes Schultz
        6. screencapture-fullGeometry-screen0.png
          675 kB
          Johannes Schultz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            j_schultz Johannes Schultz
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes