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

Text.WrapAnywhere with Styled text (testing with img tag) crops image

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.4
    • GUI: Text handling
    • None

    Description

      Test case: resize the window width until the text starts wrapping. The image does not wrap to next line in StyledText mode.

      Test code:

       

      Rectangle {
          id: main
          width: 1000; height: 480
          focus: true
          color: "#dedede"
      
      
          Text {
              anchors.centerIn: parent
              width: parent.width
              font.pointSize: 14
      
              wrapMode: Text.WrapAnywhere
      
           //   textFormat: Text.StyledText
              textFormat: Text.RichText
      
              property string theTag: "<img src=\"images/face-smile.png\">"
              text: "தமிழ்நாட்டில்" + theTag + "தமிழ்நாட்டில்"
      
              // text: "aaaaaa" + theTag + "bbbbbb"
          }
      
      

      Seems to work fine with Text.RichText, but not with Text.StyledText. The Text.WordWrap works correct with Text.StyledText

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes