Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
Qt Creator 3.1.0
-
None
-
0e43633183ad9bbf90424faef51dc7af952687d8
Description
Horizontal ListViews are not rendered properly, while vertical ListView are rendered fine.
import QtQuick 2.2 Rectangle { width: 200 height: 200 ListView { id: listView1 x: 0 y: 10 width: 279 height: 100 orientation: ListView.Horizontal model: ListModel { ListElement { name: "Grey" colorCode: "grey" } ListElement { name: "Red" colorCode: "red" } ListElement { name: "Blue" colorCode: "blue" } ListElement { name: "Green" colorCode: "green" } } delegate: Item { x: 5 height: 40 Row { id: row1 Rectangle { width: 40 height: 40 color: colorCode } Text { text: name font.bold: true anchors.verticalCenter: parent.verticalCenter } spacing: 10 } } } }