Qt World Summit: Register Today!

ListView delegate: Rectangle used as separator line is not always rendered (QML Android)

  • Hi
    I have a ListView with a simple delegate showing an icon, a Label and a Rectangle 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 to Item, which solves the problem.

Log in to reply