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

QML Text/Label horizontal alignment bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.12.1
    • Component/s: Quick: Controls 1
    • Labels:
      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

            • Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              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