Results 1 to 2 of 2

Thread: insert html in QTextEdit

  1. #1
    Join Date
    Mar 2011
    Posts
    120
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default insert html in QTextEdit

    Hi Everyone,

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

    Qt Code:
    1. <sup>10</sup>
    To copy to clipboard, switch view to plain text mode 

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: insert html in QTextEdit

    Move the text cursor to the end of the document after adding this html snippet. See QTextCursor::movePosition() and QTextEdit::setTextCursor().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTextEdit insert and get html
    By Qtonimo in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2012, 03:10
  2. QTextEdit insert html
    By abrahametalero in forum Newbie
    Replies: 4
    Last Post: 12th February 2011, 18:58
  3. insert number to qtextEdit
    By Jeneo W. in forum Qt Programming
    Replies: 8
    Last Post: 5th October 2010, 01:58
  4. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  5. Replies: 1
    Last Post: 21st March 2007, 14:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.