Solved Why does QTextDocument not display the table border properly when printing
-
hello
Why does QTextDocument not display the table border properly when printing.The following codeQPrinter printer; QTextDocument textDocument; textDocument.setHtml("<table style='border-style:solid;border-color:#787878'><tr><td>11111</td></tr><tr><td>222</td></tr></table>"); textDocument.print(&printer)
-
Hi,
Shouldn't you also give a size when setting your border style ?
-
This post is deleted! -
hi.@SGaist
<table border=1 cellpadding=0 cellspacing=0 border-color:#000000><tr><td>11111</td></tr><tr><td>222</td></tr></table>
A little gap with the expected, how to achieve the effect of the black line -
Do you mean something like shown here ?