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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes