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

QML ListView ViewSection.CurrentLabelAtStart mess properties

XMLWordPrintable

      When scrolling listview with flag ViewSection.CurrentLabelAtStart and changing property value of the section delegateitem it cause property change to wrong item.

      Test with attached example:

      • Scroll to bottom
      • Press section header label "Large"
        -> Expected behavior is that the "Large" section is collapsed and changes color and size.
        -> Actual behavior is that the "Large" section is collapsed and the previous section ("Middle") changes color and size.
      • Now scrolling will change the color and size of the current section.

      Properties are set correctly if the collapse is done before scrolling over the second section item in the list, or if CurrentLabelAtStart is not used. The collapse is done by simply hiding the list items under the section. A user-defined collapsed property is set and section item color and size depends on the property.

        1. main.qml
          2 kB
          Qt Support
        2. 0001-QTBUG-36698-auto-test.patch
          6 kB
          Mitch Curtis
        3. main_working.qml
          2 kB
          Martin Jones
        4. Videos.7z
          104 kB
          Aslak Kvestad
        5. qtbug36698-workaround.tar.gz
          2 kB
          Mitch Curtis
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mitch_curtis Mitch Curtis
            qtcomsupport Qt Support
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes