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

[REG 11.3 -> 12.0] Elided text in QTableWidget inconsistent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.0, 5.13.1
    • GUI: Text handling
    • None
    • Tested on Windows 10 1903
    • All

    Description

      When an item in a QTableWidget doesn't fit and is elided, the elision is very inconsistent and frankly a bit incomprehensible.  A path with forward slashes elides correctly.  a path with backslashes is immediately reduced to c:... a MAC address with dashes elides differently depending on the combinations of letters and numbers used.

      From a bit of testing with designer on versions from 11.3 onward I can definitely say the following:  11.3 and earlier seem to work correctly.  12.0 starts word wrapping instead of eliding. 12.3 stops the word wrapping and so you cannot see the rest of the line.

      I'm not 100% sure what exactly has changed but it is definitely related to word wrapping.  Instead of eliding the text it is now choosing to word wrap the text.  The word-breaking algorithm appears to break on forward slashes but not backslashes and strings of numbers with dashes are treated as a words but if there are letters then the dash is word breaking dash.  In 12.0 you can clearly see that it is word wrapping and rendering the wrapped text. in 12.3 and beyond the wrapped text is hidden (because this is only supposed to be a single line not a word wrapping line).

      Some screen grabs attached 

      Attachments

        1. elide_5_12.ui
          3 kB
        2. elided-11.3.PNG
          elided-11.3.PNG
          21 kB
        3. elided-12.3.PNG
          elided-12.3.PNG
          20 kB
        4. elided-5.12.0.PNG
          elided-5.12.0.PNG
          24 kB
        5. unelided.PNG
          unelided.PNG
          23 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            npross Norm Ross
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes