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

List item marker misaligned with inline image content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.2
    • None
    • macOS, Windows

      When rendering list items that contain inline elements such as <img> tags, the list marker (e.g., number or bullet) appears vertically misaligned relative to the content, this results in awkward spacing or visual imbalance.

      TextEdit {
              anchors.fill: parent
              textFormat: Text.RichText
              text: `        
               <ol>
                  <li>
                      Banana icon: <img src="qrc:/(banana).webp" width="18" height="18" />
                  </li>
              </ol>
      `
      } 

      See attachments

      Expected result:

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            evgenpervenenko Evgen Pervenenko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes