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

When a line of text is elided in a multi-line text field, all subsequent lines are removed.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • 5.10
    • 4.4.3
    • GUI: Text handling
    • None
    • Windows Vista
    • dc9ce275be88e2c656f596d867be1db7f7dd3553

    Description

      The behavior for text eliding is that multiple lines are removed when a longer line above them are elided. I have attached an example screenshot of a multiline text field before and after eliding. It's a simple matrix, which is represented as a multi line string:

      1.0000 0.0000 0.0000 0.0000
      0.0000 1.0000 0.0000 0.0000
      0.0000 0.0000 1.0000 0.0000
      0.0000 0.0000 0.0000 1.0000

      When this is truncated, it gets displayed as:

      1.0000 0.0000 0.0000 0.0....

      All of the lines below the first are removed. I have seen quite a few tickets that appear to reference this same behavior:

      http://bugreports.qt.nokia.com/browse/QTBUG-2333
      http://bugreports.qt.nokia.com/browse/QTBUG-238
      http://bugreports.qt.nokia.com/browse/QTBUG-1564
      http://qt.nokia.com/developer/task-tracker/index_html?method=entry&id=139334 (couldn't find the JIRA task for this)

      Many of them state this was resolved in 4.3+, but I'm still getting this behavior in 4.4. It would be great if this bug could be rigorously verified as fixed and in which version this fix was made.

      Attachments

        1. qt.patch.QTBUG-10379.diff
          3 kB
        2. truncated.jpg
          truncated.jpg
          31 kB
        3. untruncated.jpg
          untruncated.jpg
          40 kB

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              fannus Cameron Chrisman
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes