The image you link to is actually a JPEG. If I save it with the jpg extension it loads into Qt ok. Qt is probably trying to treat it as a PNG and that's why it's failing.
Why can't I load this specific PNG into my QPixmap?
-
27-11-2021 - |
Question
Why can't I load this png into my QPixmap? Open street map png
Q_ASSERT(fakeMap.load("C:/map71.png"));
This renders an ASSERT.
Does not render an ASSERT if I open it in MS paint and re saves it either as a jpeg or png (but larger in size). Same path and syntax.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow