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

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

    XMLWordPrintable

Details

    Description

      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
              }
          }

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes