Hi list, I noticed that the QML TableView creates extra row delegates even if there are only a few items in the model. For example the following code-
TableView { anchors.fill: parent model: ListModel { ListElement { name: "Apple"; cost: 2.45 } ListElement { name: "Orange"; cost: 3.25 } ListElement { name: "Banana"; cost: 1.95 } } rowDelegate: Rectangle { height: 64; width: parent.width color: "red"; radius: 10 } TableViewColumn { role: "name"; title: "Name"; width: 200 } } The TableView that this gives looks like http://i.imgur.com/h1f1Q3F.png (apologies for the red :P) Is this expected behavior? If yes, how do I make sure not to handle interaction on the invalid rowDelegates? Cheers, -- Shantanu Tushar (UTC +0530) shantanu.io
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest