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

Text flickers when Wrap + fontSizeMode Fit + elide are all set

    XMLWordPrintable

Details

    • Linux/X11

    Description

      With certain fonts, font sizes and layout constraints a Text item may consistently hide the last half-elided word at certain width during resizing.

      See the attached video, and run the attached example.

      For greppability, here it in:

      import QtQuick 2.15
      import QtQuick.Layouts 1.15
      
      RowLayout {
          width: 200
          height: 100
      
          Text {
              wrapMode: Text.Wrap
              fontSizeMode: Text.Fit
              elide: Text.ElideRight
      
              text: "Abc Def 123456"
      
              font.family: "SF Pro Display"
              font.pointSize: 12
      
              Layout.fillWidth: true
              Layout.maximumHeight: 30
          }
      }
      

      Reproducible both on Qt 5 & 6.

      Attachments

        1. demo.mp4
          116 kB
        2. main.qml
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes