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

Styled text vs Rich text white space before img tag

XMLWordPrintable

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

      See the 3rd line in the screen shot. Styled text ignores the space before "img" tag.

      Test code:

          Column {
              Text {
                  textFormat: Text.StyledText
                  text: "Default <img src=\"images/face-smile.png\"> align <img src=\"images/face-smile-big.png\">"
              }
      
              Text {
                  textFormat: Text.StyledText
                  // images from bindings
                  property string img1: "<img src=\"images/face-smile.png\">"
                  property string img2: "<img src=\"images/face-smile-big.png\">"
                  text: "Default " + img1 + " align " + img2 + "(using bindings)"
              }
      
              Text {
                  textFormat: Text.StyledText
                  text: "Default<img src=\"images/face-smile.png\">align<img src=\"images/face-smile-big.png\">"
              }
          }
      


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

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

              Created:
              Updated:

                There are no open Gerrit changes