Results 1 to 2 of 2

Thread: Table-problems in QTextBrowser

  1. #1
    Join Date
    May 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Table-problems in QTextBrowser

    Hello,

    I am trying to fill a QTextBrowser with an HTML text, and it works well until I try to add a table. A 2x2 table works well, but the code below generates no output whatsoever, and if I ask the textbrowser for its content (via the "toHtml() function), it gives me an empty html (at least no table). Any clue what can be wrong? I traced the parsing down into the QTextHtmlImporter but I got lost in there. The parser generated nodes, tables were created, but I don't have the experience to understand what's happening. I am using qt 4.8.1 .


    <html><head><title>Hello</title></head><body>
    <table>
    <tr>
    <td>Hello</td>
    <td>Hello</td>
    <td>Hello</td>
    </tr>
    <tr>
    <td>Threre</td>
    <td>Threre</td>
    <td>Threre</td>
    </tr>
    </table></body></html>

  2. #2
    Join Date
    May 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Table-problems in QTextBrowser

    Problem solved: There was a setting of the maximumBlockCount, which removed stuff. Grr! My fault.

Similar Threads

  1. Replies: 1
    Last Post: 8th June 2011, 14:13
  2. Validator for the table widget item in table
    By mukunda in forum Qt Programming
    Replies: 4
    Last Post: 6th June 2011, 23:07
  3. Problems to wirte into a table
    By edgar in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2009, 18:13
  4. Table Widget Vs. Table View
    By winston2020 in forum Qt Programming
    Replies: 2
    Last Post: 19th October 2008, 09:56
  5. Replies: 9
    Last Post: 21st June 2007, 10:27

Tags for this Thread

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.