Strange stripe in background ItemDelegate.
Solved
QML and Qt Quick
-
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 { text: modelData } } }
How to delete strange stripe in center delegate?
-
I found a solution.
It is bag in background component, to fix it in listView delegate itemComponent.onCompleted: height += (height %2 == 0) ? 0 : 1
profit.
Bag is active if height is not even.