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

QML Text/Label horizontal alignment bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.1
    • 5.0.0
    • Quick: Controls 1
    • None

    Description

      QMl Rich Text/Label element have incorrect horizontal alignment if line starts with html image inside

      Unable to find source-code formatter for language: qml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Label {
          width: parent.width
          horizontalAlignment: Text.AlignRight
          text: '<img src="../images/test.png">text'
          textFormat: Text.RichText
          wrapMode: Text.Wrap
      }

      Image aligned to left side and text aligned to right.

      Unable to find source-code formatter for language: qml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Label {
          width: parent.width
          horizontalAlignment: Text.AlignRight
          text: 'text<img src="../images/test.png">text'
          textFormat: Text.RichText
          wrapMode: Text.Wrap
      }

      image and text aligned to right

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            coderus Andrey
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes