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

QLabel scaledContents broken on high resolution (retina) displays

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.5.0 RC, 5.5.0, 5.5.1, 5.6.0 Alpha, 5.6.0
    • Fix Version/s: 5.6.1
    • Labels:
      None
    • Environment:
      Mac OS 10.10.x, 10.11.x
      Retina Display (e.g. iMac Retina)
      Windows 8.1
      High DPI display (with QT_DEVICE_PIXEL_RATIO=auto)
    • Platform/s:
      macOS
    • Commits:
      65aff4dc422f53faa44e961850cb4f1e4501a8c7

      Description

      Simple steps to reproduce:

      • Create new widget with Qt Designer
      • Add QLabel to widget
      • Set pixmap of QLabel to some bitmap file (e.g. the Qt logo)
      • Set property 'scaledContents' to 'true'

      Bitmap is scaled down but still about double as large as it should be (see screenshot).
      Affects both Qt Designer as well as Qt applications using QLabels with bitmaps.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                sorvig Morten Sørvig
                Reporter:
                drew Drew
              • Votes:
                5 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes