06-13-2014 06:42 AM
06-13-2014 05:05 PM
QByteArray array; <--- this has the image data in byte form
QImage image = QImage::fromData(array, "BMP"); //original format was bmp for me, I convert to jpeg further down
Let me know if this works, I just finished finished writing an app that lets a user sketch and doodle pictures with their finger and had this save function to debug it.
06-14-2014 12:43 AM
Thank you stephen, i tried your example code and it works! and then because of my curious, i tried to remove QFile from your example, and then it still works.. i think my fault is the wrong filename before.
My code to be like this,
thank you all