Error printing HTML table!
Unsolved
General and Desktop
-
Hello.. I'm migrating my project from QT4 to QT 5.14.2.
I stopped at this problem:When I print, two black stripes are created on the bottom edge of the first page and on the top edge of the second page.
It only occurs when there is a page break and it has an HTML table in the middle.Here is the HTML code for the table:
<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\">" <tr bgcolor=\"#FFFFFF\"> <td bgcolor=\"#FFFFFF\" width=\"100%\">CONDIÇÕES DO ALUGUEL</td> </tr> <tr bgcolor=\"#FFFFFF\"> QString( "<td bgcolor=\"#FFFFFF\">%1</td>" ).arg( condicoesLOC ); </tr> </table>
I inform the black table background with the tag "bgcolor="#000000"" and after the blank rows and columns.
But when informing the table background black is enough to create the black stripes in the margin of the sheets.Has anyone ever experienced this?
Is there any way to solve it?
In QT4 this problem did not occur.Thanks.
-
Hi,
Can you provide a minimal compilable example that shows this behaviour ?