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

SettIng an icon for the QListWidgetItem breaks the layout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.7.0
    • Widgets: Itemviews
    • None
    • Linux

      Run the attached example and observe what happens after the icon is set for an item. Basically it looks like item's geometry is being recalculated but no all properties are being taken into account (e.g. grid size). The item text was elided before and is not after. Resizing the window fixes all the layout, but calls to update(), updateGeometry() doesn't help (tried to call that on QListWidget, didn't try on its viewport).

        1. main.cpp
          1 kB
        2. setting_icon.png
          setting_icon.png
          13 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            jkobus Jarek Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes