Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to insert image in QTextEdit with smart text wrap?
-
Hello.
I want to insert image in QTextEdit like this:
http://dl.dropbox.com/u/6880232/1.pngQTextDocument::addResource, inserting as html or QTextImageFormat leave empty space between lines:
http://dl.dropbox.com/u/6880232/2.pngI tried to implement paintEvent() in QTextEdit with QTextLayout with correct text wrap and draw images manually, but QTextEdit became uneditable.
How can I implement this task?Thanks.