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