Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Match "PNG" to QImage::Format formats
ocgltd last edited by
I will be storing images (some PNG, some JPG) in a MySQL database, and creating the image from this data using the QImage constructor.
The height/width/data parameters are simple enough, but the format parameter is unclear. For example, if I loaded a PNG file into my database, which QImage::Format does this match to? How about JPG?