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

Quick Text's implicitWidth doesn't respect maximumLineCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.4.3, 6.5.0, 6.6.0
    • 6.2.4, 6.3.2, 6.4.1, 6.5.0 FF
    • GUI: Text handling
    • None
    • All
    • 42775c91e (dev), aeffa124c (6.4), c9cc3a96f (6.5)

    Description

      Quick Text's implicitWidth doesn't respect maximumLineCount

      Sample code:

      import QtQuick
      
      Window {
          width: 300
          height: 200
          visible: true
      
          Rectangle {
              anchors.fill: txt
              color: 'red'
          }
      
          Text {
              id: txt
              anchors.centerIn: parent
              text: "1st line\n2nd long long long long long long line"
              maximumLineCount: 1
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              srutledg Shawn Rutledge
              studiosus Vladimir Belyavsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: