PDA

View Full Version : insert html in QTextEdit



bibhukalyana
7th September 2016, 11:23
Hi Everyone,

I am trying to add a HTML fragment at the end of the QTextEdit.
The HTML is



<sup>10</sup>


After insertion whatever I am trying to write it is adding to <sup> tag.

Can any one tell me how to come out from <sup> tag ?

Thanks.

wysota
9th September 2016, 11:05
Move the text cursor to the end of the document after adding this html snippet. See QTextCursor::movePosition() and QTextEdit::setTextCursor().