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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.12.1, 5.14.0 Beta 1
    • GUI: Drag and Drop
    • None
    • macOS

      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.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jlarcombe James Larcombe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes