Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.2
-
45fb1f07eaa984af40fca9f12b8f3d27f7b0e9ac (qt/qtsvg/dev) 9a669aad89843252541acf636b34f14799c554f1 (qt/tqtc-qtsvg/tqtc/lts-5.15) 0f219c8d11f03f3c01df9b7a60535bb86ef45cd7 (qt/qtsvg/6.0) e0dd65ea8584f006281e931de041b79b16de0cf4 (qt/qtsvg/6.1)
Description
Starting from Qt 5.14.0 passing path to .svg image to QPixmap::load returns false if the file encoding is not utf-8. At least for UTF-16 le the image format needs to be passed to QPixmap::load for the image to be loaded successfully.
Steps to reproduce the problem:
- Run the attached project with a version < 5.14.0
=> button icon visible - Run the attached project with a version >= 5.14.0
=> icons disappear
Attachments
For Gerrit Dashboard: QTBUG-90744 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
342329,2 | Make image handler accept UTF-16/UTF-32 encoded SVGs | 6.1 | qt/qtsvg | Status: MERGED | +2 | 0 |
342330,2 | Make image handler accept UTF-16/UTF-32 encoded SVGs | 6.0 | qt/qtsvg | Status: MERGED | +2 | 0 |
342331,2 | Make image handler accept UTF-16/UTF-32 encoded SVGs | tqtc/lts-5.15 | qt/tqtc-qtsvg | Status: MERGED | +2 | 0 |
342346,3 | Make image handler accept UTF-16/UTF-32 encoded SVGs | dev | qt/qtsvg | Status: MERGED | +2 | 0 |