Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80850

html table is rendered incorrectly in QML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      In QML html tables have an incorrect cell spacing at the bottom and the right side. Tables look fine in QTextEdit, though.

      To reproduce, create a new QML project and paste the following into your main.qml

       

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtQuick.Controls 2.12
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Label{
              text: "
              Defective Table:
              <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">
                 <tr><td/><td/><td/></tr>
                 <tr><td/><td/><td/></tr>
              </table>"
              textFormat: Label.RichText
          }
      }
      

       

      This will result in a table like this: 

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              jrkleemann Jan Kleemann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes