Problem with QImage and JPEG
-
It is best to check if image formats and other things supplied by a plugin (such as SQL drivers, for example) are available before trying to use them from your program. If they are not, the program should indicate that error.
In your case, query QImageWriter::supportedImageFormats() to see if JPEG is supported by the running instance of your application before using it.