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:
  1. QBuffer buffer(&ba); // QBuffer inherits QIODevice
  2. buffer.open(QIODevice::WriteOnly);
  3. fred.save(&buffer, "JPG")
  4. 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:

Qt Code:
  1. ds << ba;
To copy to clipboard, switch view to plain text mode 

..should complete the process.

Looks good! Thank you very much.