Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-330

anchors.bottom is not correctly followed by multi-line Text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt for MCUs 2.8
    • Quick, QUL Team
    • Windows 10 22H2, Desktop 32bpp (MINGW)

    Description

      Code

      import QtQuick
      
      Rectangle {
          Row {
              anchors.fill: parent
              spacing: 50
      
              Text {
                  anchors.bottom: parent.verticalCenter
                  text: "1 line"
              }
              Text {
                  anchors.bottom: parent.verticalCenter
                  text: "2\nlines"
              }
              Text {
                  anchors.bottom: parent.verticalCenter
                  text: "3\n(Three)\nlines"
              }
              Text {
                  anchors.bottom: parent.verticalCenter
                  text: "1 line"
              }
          }
      
          Rectangle {
              width: parent.width
              height: 1
              anchors.verticalCenter: parent.verticalCenter
              color: "red"
          }
      }
      

       

      Expected Outcomes
      The bottoms of all 4 Texts have exactly the same vertical positions

       

      Actual Outcomes
      The bottoms of the multi-line Texts are lower than the bottoms of the single-line Texts

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            skoh-qt Sze Howe Koh
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes