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

[QtQuick] Text.ElideRight with maximumLineCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0
    • None

    Description

      As mentioned in the documentation, this combination should be supported, but apparently it does not work correctly.

      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Window {
          id: root
          visible: true
          width: 300
          height: 200
      
          Rectangle {
              anchors.fill: label
              border.width: 1
              border.color: "red"
          }
          Text {
              id: label
              anchors.centerIn: parent
              width: 180
              text: "Thiiiiiiiiis issssssss exxxxxxample teeeeeeext."
              maximumLineCount: 2
              elide: Text.ElideRight
              wrapMode: Text.Wrap
              font.pixelSize: 16
          }
      }
      

      Actual behavior:

      Expected behavior:

       

       

      Attachments

        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
            t.artikov Timur Artikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes