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

Incorrect rendering of <ul> with Inline <li> styles in qml text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.8.4
    • 6.8.3
    • None
    • macOS 15.6
    • macOS

      When rendering HTML content inside a QML Text element, list items (<li>) with inline styles such as style='margin-left: 0;' do not display correctly. Specifically, the bullet points are missing or the layout is broken, even though the structure is valid HTML(see attached screen).

      HTML Example:

      Text {
          textFormat: Text.RichText
          text: "<ul>
                    <li style='margin-left: 0;'>Item One</li>
                    <li style='margin-left: 0;'>Item Two</li>
                 </ul>"
      }

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

            srutledg Shawn Rutledge
            evgenpervenenko Evgen Pervenenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes