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

QListView in IconMode has to narrow text layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.2
    • 5.11.1
    • Widgets: Itemviews
    • None
    • db738cbaf1ba7a4886f7869db16dbb9107a8e65e

    Description

      QListView in IconMode lays out the item text too narrowly on Qt 5.11.1 when compared to Qt 5.9.1 (see the attached screenshots).

      In fact the text width seems to be constant regardless of the full item size in the view.

      Attached is an reproducer example. Press zoom in/zoom out shortcuts to see that the text layout does not adjust to the available item width.

       

      Attachments

        1. main.cpp
          1 kB
        2. qlistview-big-qt5.11.1.png
          qlistview-big-qt5.11.1.png
          111 kB
        3. qlistview-big-qt5.9.1.png
          qlistview-big-qt5.9.1.png
          111 kB
        4. qlistview-icon-mode.zip
          2 kB
        5. qlistview-qt5.11.1.png
          qlistview-qt5.11.1.png
          112 kB
        6. qlistview-qt5.9.1.png
          qlistview-qt5.9.1.png
          90 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aleserjavec Ales Erjavec
            aleserjavec Ales Erjavec
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes