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

QLabel should take a QIcon (instead a QPixmap)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None
    • 81e74cfa2 (dev), 3f34ee319 (dev)

    Description

      Using a QIcon instead a QPixmap in a QLabel has the advantage that the label can react on devicePixelRatio changes (e.g. due to moving it from one screen to another) by simply selecting the appropriate icon if available. The desired size has to be passed as second parameter though.

      Attachments

        1. label_pixmap.zip
          2 kB
        2. QTBUG-122403.7z
          32 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              chehrlic Christian Ehrlicher
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change