Solved QImageReader supportedImageFormats difference in release and debug build
-
Hi guys, I have a problem with using QImageReader.
qDebug() << QImageReader::supportedImageFormats();
In the debug build I get this:
("bmp", "cur", "gif", "icns", "ico", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "svg", "svgz", "tga", "tif", "tiff", "wbmp", "webp", "xbm", "xpm")
and in release build this:
("bmp", "pbm", "pgm", "png", "ppm", "xbm", "xpm")
My program has a drag and drop function and I use QImageReader to check if a file is a picture file. In my debug build it works perfectly fine.
-
@MoritzN
I just checked in Qt 5.9.3 gave same results. -
Thank You!
I found the problem! -
Hi and welcome to devnet,
What was the problem ?