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

SettIng an icon for the QListWidgetItem breaks the layout

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        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.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes