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

QML Text - multi-line text is not always elided correctly when item is resized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.3
    • None
    • macOS

      The attached example displays 4 multi-line texts with Text.ElideRight and maximumLineCount = 1, and each one has a different wrapMode value

      When QML Text items are resized, they may not be elided correctly:

      • Text.NoWrap elides way too early compared to other wrap modes
      • Other wrap modes don't always the full first line even if there is enough room for it

       

      In all cases, if we add the following code to QML Text items: (onWidthChanged: forceLayout()) texts are always elided as expected

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

            hurlevent Oliver Eftevaag
            lemortalexandre Alexandre Lemort
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes