Solved ListView delegate: Rectangle used as separator line is not always rendered (QML Android)
-
Hi
I have aListView
with a simple delegate showing an icon, aLabel
and aRectangle
used as separator line.When the view is first rendered and scrolled downwards, all the separator lines are rendered correctly. However, when I swipe to scroll the list back up, the lines are either not rendered at all, or with the wrong, minimal thickness.
I have tried using different line width (i.e.
Rectangle
heights) but to no avail.
I have tried on both Qt 5.10.1 and 5.11.How can I fix this?
-
I changed the top level element for the delegate from
Rectangle
toItem
, which solves the problem.