0

I can copy a pixmap into the windows clipboard with Qt. It's ok. But now, I would like to add a text before my image (pixmap) but it doesn't work.

This my code :

    QClipboard* clipboard = QApplication::clipboard();
    clipboard->setText("bla bla"); // I added this line
    clipboard->setPixmap(pixmap);

I think that I need to create a htlm with my enriched text but I don't know how to add an pixmap (the image data without an URL)

How can I do that ?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
John Smith
  • 45
  • 3

1 Answers1

0

I found a solution a while ago. I wrote an html string with an embedded png like that : Can I embed a .png image into an html page?

ps: I converted my pixmap on fly into a png / base64 / string.

John Smith
  • 45
  • 3