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

QListView does not relayout as it should

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.0
    • 4.5.2, 4.6.0
    • Widgets: Itemviews
    • None

      Hi, the attached code shows a problem with QListView not relayouting when
      setting the icon to one if it's items. And the second item effectively ends up
      above the first one instead of below. Uncommenting the commented line (forcing
      a manual relayout) makes it work but i think it should work without this line.

      I've verified the problem on:

      • Linux Qt 4.5.2
      • Linux Q4 4.6 branch from git
      • S60 Qt 4.5.2

        1. main.cpp
          0.7 kB
          Stian Sandvik Thomassen (closed Nokia identity)
        2. mylist.h
          0.6 kB
          Stian Sandvik Thomassen (closed Nokia identity)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes