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

Inconsistent RichText Formatting of "<ol>" and "<ul>" in Text QML type

    XMLWordPrintable

Details

    • All
    • 41a1ff4e3 (dev)

    Description

      There are 2 major issues:

      1. Format changes are not applied to the first ordered/unordered list item
      2. Format of the next list item gets the format of the previous item

      Reproduced on:

      • Android 11, 12, 13, 14
      • IOS 17+
      • Mac OS Sonoma 14.1.1

      Current behavior:                                      Expected behavior:{}

                               

      import QtQuick 2.15
      
      Window {
          width: 1024
          height: 768
          visible: true    
          Text {
              anchors.centerIn: parent
              textFormat: Text.RichText
              text: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
      <html><head><meta name="qrichtext" content="1" /><meta charset="utf-8" /></head><body><ol>
      <li style="color:#f32727">Dgkegk</li>
      <li style="color:#f327ca">Svnsgnacnafn</li>
      <li style="color:#f32727">Sgmwfj</li></ol></body></html>'
          }
      }

      Attachments

        1. image-2024-03-29-10-19-54-892.png
          image-2024-03-29-10-19-54-892.png
          18 kB
        2. image-2024-03-29-10-20-45-783.png
          image-2024-03-29-10-20-45-783.png
          18 kB
        3. ListFormatBug.zip
          4 kB
        4. test.html
          0.2 kB

        Issue Links

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

          Activity

            People

              sami.shalayel Sami Shalayel
              sunilfyi Sunil Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes