Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
None
-
6.4.0
Description
In the documentation of ListView section.delegate there is a code-snipped which is faulty and only works somewhat.
I expect the example to use the right way.
The section.delegate will get the property 'section' set, just like the listview delegate gets the property 'model' set. Important to note that this can be used anywhere in the delegate.
The code-snippet under the section.delegate, however, gives the impression it is a property set on the root-item of the delegate.
It lists the code:
required property string section
which, if used, will cause sections to sometimes not get the proper text. In my code the 3rd and 5th sections repeated the 2nd-section text.
This problem goes away by removing the above line and changing the
text: parent.section
to just
text: section