123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import QtQuick 2.11
- Rectangle {
- id:root
- anchors.fill: parent
- property alias modelData: listModel
- GridView{
- id:gridview
- anchors.fill: parent
- anchors.margins: 5
- cellWidth:width/20
- cellHeight: height/10
- clip: true
- delegate: componet
- model: listModel
- Component {
- id:componet
- Rectangle{
- width:gridview.cellWidth-2
- height: gridview.cellHeight-2
- color: "#DFE2E6"
- radius: 3
- Text {
- id: name
- text: pressure
- anchors.centerIn: parent
- }
- }
- }
- ListModel{
- id:listModel
- }
- }
- }
|