Depends on the use case, but what about QTextDocument::setExtraSelections() with the correct QTextCursor?
See: http://qt-project.org/doc/qt-4.8/qtextedit.html#setExtraSelections On Sat, Mar 29, 2014 at 10:27 PM, <igor.mironc...@gmail.com> wrote: > Hi. > > How to highlight selected text in QTextDocument::drawContents() ? > > Thanks. > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest