How to load a webp in QImage?
Solved
General and Desktop
-
I have a simple project that displays an image picked by the user. In the process, I run:
QImage image; image.load(imagePath);
But QImage remains with an "invalid" image. It does work for other image formats, like png and jpg.
As I understand it, webp is supported by something called "Qt Image Formats", that's external to QtGui, but looking at the
plugins/imageformats
folder, there is no webp dll, only aqwebp.pdb
file.How can I acquire this dll? Or am I missing the mark somewhere?
-
@jeff1209 said in How to load a webp in QImage?:
Or am I missing the mark somewhere?
Yes, in the Qt online installer you forgot to install the Qt image formats for your Qt version.
-
@Christian-Ehrlicher That was it, thanks!
-