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

Strange representation of Qml Text with elide, wrapMode and maximumLineCount properties

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/Other display system, macOS, Windows
    • 82247946b2733bcd5bb3740a31c7d38fb90f6ddd (qt/qtdeclarative/dev)

    Description

      Hello, I faced with the next problem: representation of Qml Text with combination of elide (Text.ElideRight), wrapMode(Text.Wrap) and maximumLineCount(2) properties looks not correct.

      There is enough space for the second line at the right picture(wrapMode: Text.Wrap), but this line looks too short, elide is too aggressive.

      This doesn't satisfy our customer and we couldn't find any workaround.

       

      Check this out:

       

      Code sample is in attachment.

       

       

      Attachments

        1. image-2018-12-21-18-13-53-038.png
          5 kB
          Dmitry Lisin
        2. TextProblem.zip
          2 kB
          Dmitry Lisin

        Issue Links

          For Gerrit Dashboard: QTBUG-72736
          # Subject Branch Project Status CR V

          Activity

            People

              vgt Eirik Aavitsland
              dmitrylisin Dmitry Lisin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes