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

"section" property in ListView behaviour is broken (degradation)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.7, 6.8, 6.9.0, 6.9
    • None
    • All

      In Qt versions 6.7 and higher (including 6.9.0) the behaviour of ListView when "section" property defined is broken. In Qt 6.6.3 it works fine (so it is some degradation).

      When you fill the list model with items and section property is defined for the first time everything displayed fine. If you clear the model and fill it with new values, sometimes old sections are displayed together with the new one. Seems like some cache wasn't clear.

      To reproduce the issue I've created the small project with one button and ListView.

      testList.zip

      Build it by Qt 6.9.0

      Press the button: list will be filled with items and sections without issues. Scroll the list and DragOverBounds it. Press the button again. Repeat the steps. From time to time the will be errors like on screenshots above (sections from the previous list). Especially in over bound areas.

       

      If you try it on Qt 6.6.3 - there will be no errors.

        1. testList.zip
          2 kB
        2. Screenshot 2025-05-25 223113.png
          Screenshot 2025-05-25 223113.png
          16 kB
        3. Screenshot 2025-05-25 222918.png
          Screenshot 2025-05-25 222918.png
          13 kB
        4. image.png
          image.png
          13 kB
        For Gerrit Dashboard: QTBUG-137172
        # Subject Branch Project Status CR V

            santhoshkumar Santhosh Kumar Selvaraj
            alexxey593 Stolyarov Aleksey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change