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

Text element - RichText rendered improperly on Windows

    XMLWordPrintable

Details

    Description

      I'm seeing text with html-style markup getting truncated unexpectedly.

      import QtQuick 2.0
      
      Rectangle {
          id: rootItem
          width: 200
          height: 100
      
          Text {
              id: title1
              anchors.top: rootItem.top
              anchors.topMargin: 5
              anchors.left: rootItem.left
              anchors.leftMargin: 5
              font.pointSize: 16
      
              wrapMode:  Text.Wrap
              textFormat:  Text.RichText
      
              color:  "black"
              text: "This works"
          }
      
          Text {
              id: title2
              anchors.top: title1.bottom
              anchors.topMargin: 5
              anchors.left: rootItem.left
              anchors.leftMargin: 5
              font.pointSize: 16
      
              wrapMode:  Text.Wrap
              textFormat:  Text.RichText
      
              color:  "black"
              text: "<b>This</b> does not"
          }
      
      }
      

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            tcr Todd Rose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes