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

Text: Using maximumLineCount and ElideRight lead to display issues when using an empty text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.4, 5.1.0 Beta 1
    • None
    • Linux/X11 (Kubuntu 12.04 with Qt 4.8.4)

      If you use maximumLineCount and ElideRight to limit a text to for instance 2 lines, and then replace that text with an empty string, the elide dots (...) are still being displayed. Obviously the text is not too long when it is an empty string...

      I have attached a simple QML file that shows the issue. It starts with a text that is too long and replaces it with an empty string when clicked.

        1. testTextElide.qml
          0.6 kB
          Troels Nilsson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aalpert Alan Alpert
            nilsson.troels@gmail.com Troels Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes