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

With elide and wrapMode: Text.Wrap, only last line gets elided

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • Qt for MCUs 2.9
    • Qt for MCUs 2.8.1
    • QUL Team
    • None
    • Consumer team Sprint 2024/3.1

    Description

      I would expect both the second and third line to get elided here:


       

      import QtQuick 2.15
      Rectangle {
          color: "#41CD52"
          width: 800
          height: 480
          Rectangle {
              anchors.fill: text
              color: "gold"
          }
          Text {
              id: text
              text: "Text\nTestTestTest\nTestTestTest"
              horizontalAlignment: Text.AlignHCenter
              width: 100
              height: 100
              elide: Text.ElideRight
              wrapMode: Text.Wrap
          }
      }
      

      With wrapMode: Text.WordWrap there's no eliding at all:


       

      Attachments

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

        Activity

          People

            paeglis Gatis Paeglis
            srodal Samuel Rødal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes