Well, I have read the docs more carefully, and you might not need that.
Only do this when you wish to insert a pixmap:
QImage img
= freesLabel
->pixamp
()->toImage
();
cursor.insertImage("labelImage");
QImage img = freesLabel->pixamp()->toImage();
textDoc->addResource(QTextDocument::ImageResource, QUrl("labelImage"), img);
cursor.insertImage("labelImage");
To copy to clipboard, switch view to plain text mode
This will work just fine if you implement it correctly.
textDocument is your QTextDocument.
Regards
Bookmarks