How to insert image in QTextEdit with smart text wrap?
General and Desktop
1
Posts
1
Posters
2.4k
Views
1
Watching
-
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.