Results 1 to 2 of 2

Thread: QTextDocument Html

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default QTextDocument Html

    Hey there trolltechers,

    I'm using a QTextDocument to display an Html based string.

    I'd like to remove some characters of that "html string".
    Can I do that without parsing the html ?

    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: QTextDocument Html

    Yes, you can for example use QTextDocument::find to find what you seek for and then remove it using the obtained cursor.

  3. The following user says thank you to wysota for this useful post:

    bunjee (19th November 2007)

Similar Threads

  1. QTextDocument stinks
    By elcuco in forum Qt Programming
    Replies: 4
    Last Post: 24th July 2007, 12:30
  2. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 21:51
  3. QTextDocument and background-images
    By pfusterschmied in forum Newbie
    Replies: 0
    Last Post: 1st June 2007, 19:26
  4. Replies: 1
    Last Post: 18th July 2006, 12:06
  5. [Qt 4.1]using html in QTextEdit from designer
    By patcito in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2006, 22:36

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.