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

QLabel scaledContents broken on high resolution (retina) displays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.1
    • 5.5.0 RC, 5.5.0, 5.5.1, 5.6.0 Alpha, 5.6.0
    • None
    • 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)
    • macOS
    • 65aff4dc422f53faa44e961850cb4f1e4501a8c7

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes