Strange stripe in background ItemDelegate.

  • Minimal code:

    import QtQuick 2.5
    import QtQuick.Layouts 1.1
    import QtQuick.Controls 2.1
    import QtQuick.Controls.Material 2.1
    ListView {
        anchors.fill: parent
        model: ["Test", "Test1", "Test2" ]
        delegate: ItemDelegate {
            width: parent.width
                text: modelData

    alt text

    How to delete strange stripe in center delegate?

  • I found a solution.
    It is bag in background component, to fix it in listView delegate item

    Component.onCompleted: height += (height %2 == 0) ? 0 : 1

    Bag is active if height is not even.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.