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

html table is rendered incorrectly in QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.13.2, 6.2.0
    • None
    • 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

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes