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

Drag pixmap seems to be scaled (and therefore fuzzy) on low-DPI screens on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.12.1, 5.14.0 Beta 1
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      Build and run the attached test app on macOS. I've set the plist for this app to use 'low resolution' mode, i.e. with a device pixel ratio of 1.0, even if a retina screen is in use.

      Click and drag the label in the top-left corner of the window.

      You'll see that the text in the dragged image is fuzzy by comparison with the real thing. It looks as though it's being scaled and resampled in some way. I've attached a screenshot demonstrating the problem.

      This is a custom widget with a very simple mouse move handler which creates a pixmap by 'grabbing' a pixmap of the widget. I've also tried this with a custom-drawn pixmap and the same problem occurs, so it's not a problem with QWidget::grab.

      If you edit Info.plist and set NSHighResolutionCapable to YES and run it on a retina monitor, it works fine.

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jlarcombe James Larcombe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes