Hey there,

I am displaying a table by using a Qtextdocument.

The table looks affected by the length of the words as shown in the figure below.

Is there something wrong with my html?

Qt Code:
  1. <html>
  2. <body>
  3. <table border=1 cellpadding=0 cellspacing=0>
  4. <tr>
  5. <td colspan=2 class=hdrgraytop>
  6. loooooooooooooooooooooooooong
  7. </td>
  8. </tr>
  9. <tr>
  10. <td width="10%">xxx</td>
  11. <td width="90%">xxxxxxxxx</td>
  12. </tr>
  13. <tr>
  14. <td class=hdrgray>yyy</td>
  15. <td class=hdrgray>yyyyyyyyy</td>
  16. </tr>
  17. <tr>
  18. <td class=hdrgraybotom>zzz</td>
  19. <td class=hdrgraybotom>zzzzzzzzzzz</td>
  20. </tr>
  21.  
  22. </table>
  23. </body>
  24. </html>
To copy to clipboard, switch view to plain text mode 

TableError.png