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?
dfomin last edited by
I want to insert image in QTextEdit like this:
QTextDocument::addResource, inserting as html or QTextImageFormat leave empty space between lines:
I 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?