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
Issue Links
- resulted in
-
QTBUG-134930 [REG 6.9] QLabel scaled pixmap is broken
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-122403 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
570057,24 | QLabel: add setIcon() and setIconSize() | dev | qt/qtbase | Status: NEW | 0 | 0 |
569056,15 | QLabel: use QIcon instead QPixmap in internal data structure | dev | qt/qtbase | Status: MERGED | +2 | 0 |
579201,7 | QLabel: add test to verify correct drawing when using QIcon | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
604696,2 | QLabel: clearContents() when setting a new QPixmap | dev | qt/qtbase | Status: MERGED | +2 | 0 |