QTextDocument HTML table problem
-
I'm trying to print a table using QPrinter and QTextDocument. I want a table with single-line borders, but I get weird result:
!http://rain.ifmo.ru/~imihajlov/table.png(Table)!
The HTML code is:
@<table width="100%" cellspacing="0" cellpadding="2px">
<tr>
<th width="20%">Test</th>
<th width="20%">Nominal</th>
<th width="10%">Col. 1</th>
<th width="10%">Col. 2</th>
<th width="10%">Col. 3</th>
<th width="10%">Col. 4</th>
<th width="10%">Col. 5</th>
<th width="10%">Col. 6</th>
</tr>
........
</table>@What should I do to make borders single-lined? border-collapse does not work.
-
As you can see "here":http://qt-project.org/doc/qt-4.8/richtext-html-subset.html border-collapse is not supported.
I faced the same problem last week. But I couldn't figure out a solution.