Hi!

I have a problem, maybe with a trivial answer.
How can I get the file format of an QImage?

There is a format() function, but it is an enum, like QImage::Format_Invalid, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_Indexed8, QImage::Format_RGB32, QImage::Format_ARGB32, but I need this information in the following form: char* like PNG, JPG, JPEG, etc.

What is the easiest solution for this problem?

Thank you,
greenvirag