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

QLabel scaledContents broken on high resolution (retina) displays

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    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

          For Gerrit Dashboard: QTBUG-46846
          # Subject Branch Project Status CR V

          Activity

            People

              sorvig Morten Sørvig
              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