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

QLabel should take a QIcon (instead a QPixmap)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • None
    • 81e74cfa2 (dev), 3f34ee319 (dev), ce1e18ff4 (dev), 572602582 (6.9), dcefb304c (6.10)

      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.

        1. QTBUG-122403.7z
          32 kB
          Christian Ehrlicher
        2. label_pixmap.zip
          2 kB
          Nodir Temirkhodjaev
        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
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: