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

Text type word eliding when wrapMode is set to Text.WordWrap

XMLWordPrintable

      Users have requested to have multiline eliding with Text, when using wrapMode: Text.WordWrap.

      Currently words will go over the text area when WordWrap is used.

      Example code:

      Text {
              id: name
              text: "aaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb aaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb aaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb aaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
      
              height: 150
              width: 50
              maximumLineCount: 100
              elide: Text.ElideRight
              wrapMode: Text.WordWrap
      
              Rectangle {
                  anchors.fill: parent
                  color: "gold"
                  z: -1
              }
          }

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tero.pelkonen Tero Pelkonen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes