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

No elision with elide and wrapMode: Text.Wrap without manual line breaking

    XMLWordPrintable

Details

    • Consumer team Sprint 2024/3.1, Consumer team Sprint 2024/3.2

    Description

      Unlike QTMCU-333 with manual line breaking, removing the manual line breaks makes the elision not work:

       

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

       

      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:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes