Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error printing HTML table!
Forum Updated to NodeBB v4.3 + New Features

Error printing HTML table!

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 223 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RenanHm
    wrote on last edited by
    #1

    Hello.. I'm migrating my project from QT4 to QT 5.14.2.
    I stopped at this problem:

    erro.png

    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.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RenanHm
      wrote on last edited by
      #2

      Hello.
      No solution?
      Should I report as a bug to QT?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Can you provide a minimal compilable example that shows this behaviour ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved