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

QQuickText asserts calculating implicitWidth with eliding and maximumLineCount.

    XMLWordPrintable

Details

    Description

      This

      import QtQuick 2.0
      
      Text {
          width: implicitWidth / 2
          height: implicitHeight / 2
          elide: Text.ElideRight
          maximumLineCount: 4
          
          text: "Line one\nLine two\nLine three\nLine four"
      }
      

      will assert while doing a layout of the truncated lines less up to maximumLineCount.

      Attachments

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

        Activity

          People

            andrew.den.exter Andrew den Exter
            andrew.den.exter Andrew den Exter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes