Aha; I think I see.
So if I have a QImage called 'fred', for example, I would use (following the example given in the Qt documentation for QImage::save):
Qt Code:
QByteArray ba; fred.save(&buffer, "JPG") buffer.close();To copy to clipboard, switch view to plain text mode
Then if 'ds' is the data stream that the rest of my object's data is being written to, then:
..should complete the process.
Looks good! Thank you very much.
Bookmarks