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. Videos.7z
          104 kB
        2. qtbug36698-workaround.tar.gz
          2 kB
        3. main.qml
          2 kB
        4. main_working.qml
          2 kB
        5. 0001-QTBUG-36698-auto-test.patch
          6 kB
        For Gerrit Dashboard: QTBUG-36698
        # Subject Branch Project Status CR V

            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