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

in QML Text the link underline is affected by following superscript tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.1
    • GUI: Text handling
    • None
    • Windows

      I am showing a link using QML rich format text, the link is followed by a superscript.

      The underline of the link is moved up, like overline instead.

      import QtQuick
      
      Window {
          width: 320
          height: 320
          visible: true
          title: qsTr("Hello World")    
          Text {
              anchors.fill: parent
              textFormat: Text.RichText
              font.pixelSize: 30
              wrapMode: Text.WordWrap        
              text: "<a href=\"https://www.google.com/\">google</a><br><br>" +
                    "<a href=\"https://www.google.com/\">google</a><sup>1</sup>"        
          }
      }

      There could be some text between link and sup, even line break, this still happen.

      The output please see attached picture.

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

            esabraha Eskil Abrahamsen Blomfeldt
            jinghuang Jing Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes