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

The lineCount of the text becomes 0 when elide is set.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0
    • Quick: Widget
    • None
    • Ubuntu 22.04 X11
    • Linux/X11

    Description

      When I use a Text as the delegate of a ListView, with elide specified to anything other than Text.ElideNone  and the height set to a certain number multiplied by lineCount,  the lineCount of the first item will be 0. 

      The problem can be reproduced by the attached test case. Compile and link it with Qt 6.6.0.

      Execute the program,  the first item will not be displayed.

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            warindy yi wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes