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

QML ListView ViewSection.CurrentLabelAtStart mess properties

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        1. 0001-QTBUG-36698-auto-test.patch
          6 kB
        2. main_working.qml
          2 kB
        3. main.qml
          2 kB
        4. qtbug36698-workaround.tar.gz
          2 kB
        5. Videos.7z
          104 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes