Copy and Paste into a QPlainTextEdit when data includes an image
-
wrote on 25 Jan 2022, 20:20 last edited by
Hi,
I have a ui that has a QPlainTextEdit box in it. When I copy and paste anything into this box with an image the image is not inserted with the text. I've done some research and don't think it is designed in such a manor. I've also read that QTextEdit is the same way. I've found bits and pieces on the internet but they don't seem to fit my needs. How would you recommend going about a simple text box that will accept a image in it.
Thanks in advance..
Chris
-
-
wrote on 25 Jan 2022, 22:19 last edited by
Thanks SGaist that allowed the copy and paste of the image into the QTextEdit but now presents another problem. The contents of that QTextEdit is written to disk (the box is actually a Email Signature Box.) via QSettings however the data is not transferred to disk and I end up with a funky little image that just says "obj" when I send the email. Other than that it works fine.. suggestions ?
Thanks
-
wrote on 25 Jan 2022, 23:12 last edited by
I figured it out. Instead of using toPlainText to get the data I use to Html and store that. Works like a champ. Thanks again SGaist.
1/4