Hi trolltechers,
I'm trying to load an image and then populate another using its "binary data",
For some reason it doesn't work and image2 isn't saved.
Here is the code :
Qt Code:
unsigned char * bits = image.bits(); QImage image2; image2.loadFromData(bits, image.numBytes() * 8); if (image2.save(photoPath) == NULL) { // Enters here : Image2 cannot be saved }To copy to clipboard, switch view to plain text mode
Any idea ?
Bookmarks