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. QPrinter HTML table problem
Qt 6.11 is out! See what's new in the release blog

QPrinter HTML table problem

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k 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.
  • M Offline
    M Offline
    Mar91
    wrote on last edited by
    #1

    Hello, since QT5 i have problem in printing HTML code.
    Here is the code:
    @
    <html><head><title></title><style> table { border-collapse:collapse; } table,td,th { border:1px solid grey; padding-top:5px; padding-bottom:5px; font-size:16px; font-family:Arial,Helvetica,sans-serif;} } th{color:black; width:5%;}</style></head><body><p ></p><div >Settembre 2013</div><table width='100%'><tr><th >Tipo</th><th >Ordinante</th><th >Importo</th><th >Beneficiario</th><th >Stato</th><th >Data Richiesta</th><th >Struttura</th><th >Data Effettiva</th><th >Note</th></tr><tr><th >prelevamento</th><th >marco</th><th >11</th><th >daniele</th><th >eseguito</th><th >17/09/2013</th><th >casa</th><th >17/09/2013</th><th ></th></tr><tr><th >prelevamento</th><th >marco</th><th >22</th><th >daniele</th><th >eseguito</th><th >17/09/2013</th><th >casa</th><th >17/09/2013</th><th ></th></tr></table></body></html>
    @

    Which is well renderized from the browser.

    Here is the QPrinter result.

    http://imagebin.org/271187

    Something wrong.

    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